Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My spells dont work, anyone wanna recode? XD
#1
lol i was working on this game for like 3 months, when i finally decided it had enough features to make maps and stuff, i discovered that SPELLS DONT WORK (Runtime error '380': Invalid property value.) lol and on the same time can anyone re-direct me to Visual Spells tutorial?

M3 6UcH N00b 1337 :lol:
Reply
#2
You don't need to re-code, you just need to fix the bug.

Show us what line it errors on.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#3
Robin Wrote:You don't need to re-code, you just need to fix the bug.

Show us what line it errors on.

no lines, it compiles perfectly and when i go to change the spells in the /editspell it gives me that error.
Reply
#4
It doesn't give you errors when you run it in the IDE and type /editspell?
Reply
#5
Sonire Wrote:It doesn't give you errors when you run it in the IDE and type /editspell?

i'll give that a try tommorow, my server host is offline and it's 11 PM *Warning off-topic* and tommorow is the last day of the senior students in my school, so i cant miss it XD
Reply
#6
It's almost July and you're still in school Confusedhock:
Where are you from?
Reply
#7
i found the bug.

in Public Sub SpellEditorInit()

Code:
frmSpellEditor.scrlLevelReq.value = Spell(EditorIndex).LevelReq

how do i fix this? and i still wanna be forwarded to a Visual Spells tutorial XD.
Reply
#8
Replace with:

Code:
If Spell(EditorIndex).LevelReq > frmSpellEditor.scrlLevelReq.min then
    frmSpellEditor.scrlLevelReq.value = Spell(EditorIndex).LevelReq
else
    frmSpellEditor.scrlLevelReq.value = frmSpellEditor.scrlLevelReq.min
end if
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#9
And BTW, there is no visual spells tutorial Tongue
Reply
#10
Robin Wrote:Replace with:

Code:
If Spell(EditorIndex).LevelReq > frmSpellEditor.scrlLevelReq.min then
    frmSpellEditor.scrlLevelReq.value = Spell(EditorIndex).LevelReq
else
    frmSpellEditor.scrlLevelReq.value = frmSpellEditor.scrlLevelReq.min
end if


Thanks robin, you saved my game Smile.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)