Master BAW
2012-06-21 13:23:24
Hey, i'm trying to put a value of an array onto another arrayvalue with this:
when I run the script it gives an error to this line:
:duh::duh:
when writing this, i just realised , I forgot the " : " :D so , uhhh, fixed now :D [BANANA]so, the lesson to learn from this is: If you get a strange error, always check if you have the " : " before the = when needed.[/BANANA]
anybody else ever has errors where they were stuck with for a very long time? with scripting in php, and when it doesn't give a very accurate error, sometimes I find myself looking for the error for hours, and then I realize I only forgot a ; or a . somewhere XD soooo frustrating :fiery:
PossibleItem[p] = item[x];PossibleItem is declared as this, inside a function: PossibleItem : array of TItems;item is declared as this, outside the function, in a var at the begin of the script: item : array of TItems;when I run the script it gives an error to this line:
PossibleItem[p] = item[x];:duh::duh:
when writing this, i just realised , I forgot the " : " :D so , uhhh, fixed now :D [BANANA]so, the lesson to learn from this is: If you get a strange error, always check if you have the " : " before the = when needed.[/BANANA]
anybody else ever has errors where they were stuck with for a very long time? with scripting in php, and when it doesn't give a very accurate error, sometimes I find myself looking for the error for hours, and then I realize I only forgot a ; or a . somewhere XD soooo frustrating :fiery: