Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Runtime 380[Its All Good]
#5
Make sure the value isn't lower than the minimum value or the maximum...

Code:
If Spell(EditorIndex).LevelReq < frmSpellEditor.scrlLevelReg.Min Then Spell(EditorIndex).LevelReq = frmSpellEditor.scrlLevelReg.Min
If Spell(EditorIndex).LevelReq > frmSpellEditor.scrlLevelReq.Max Then Spell(EditorIndex).LevelReq = frmSpellEditor.scrlLevelReq.Max

(I didn't check this with my source, just typed it up in the post...so not 100% sure if it's right)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)