Hey, i'm trying to put a value of an array onto another arrayvalue with this:
PossibleItem is declared as this, inside a function:Code:PossibleItem[p] = item[x];
item is declared as this, outside the function, in a var at the begin of the script:Code:PossibleItem : array of TItems;
when I run the script it gives an error to this line:Code:item : array of TItems;
Code:PossibleItem[p] = item[x];
when writing this, i just realised , I forgot the " : "so , uhhh, fixed now
![]()
so, the lesson to learn from this is: If you get a strange error, always check if you have the " : " before the = when needed. ![]()
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![]()




so , uhhh, fixed now
Reply With Quote







