E
Enegris
Guest
so i was doing a tutorial on how to create an inventory for an rpg-game.
although i did precisely what i was being told by the tutorial, i got an errormessage for this script:
script: inv_init()
globalvar inv, invMax;
invMax = 30;
for(var i=0; i<invMax; i++)
{
inv[i,0] = 0
inv[i,1] = 0
}
the error message i get says:
___________________________________________
COMPILATION ERROR in Script: inv_init
Error in code at line 8:
for(var i=0; i<invMax; i++)
^
at position 11: Unexpected symbol in expression.
any idea what i've done wrong/ how i can fix this?
although i did precisely what i was being told by the tutorial, i got an errormessage for this script:
script: inv_init()
globalvar inv, invMax;
invMax = 30;
for(var i=0; i<invMax; i++)
{
inv[i,0] = 0
inv[i,1] = 0
}
the error message i get says:
___________________________________________
COMPILATION ERROR in Script: inv_init
Error in code at line 8:
for(var i=0; i<invMax; i++)
^
at position 11: Unexpected symbol in expression.
any idea what i've done wrong/ how i can fix this?