SRL Archive - OSR Help

Weird error when setting over an array


Master BAW

2012-06-21 13:23:24

Hey, i'm trying to put a value of an array onto another arrayvalue with this:
      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:

putonajonny

2012-06-21 17:08:48

PHP errors are so vague :/ I hate simba errors at line 0, i'm like yeah.. because that exists…

Master BAW

2012-06-21 17:25:53

From: putonajonny
PHP errors are so vague :/ I hate simba errors at line 0, i'm like yeah.. because that exists…


haha yeah true :p

I'm happy that these Simba errors are a lot easier to understand, but still some I don't understand. :)

I havn't had that error on line 0 yet… what does it mean? :)

putonajonny

2012-06-21 17:45:00

From: MasterCrimez
haha yeah true :p

I'm happy that these Simba errors are a lot easier to understand, but still some I don't understand. :)

I havn't had that error on line 0 yet… what does it mean? :)


I think it's a bug with simba :/

Abu

2012-06-21 17:58:36

From: MasterCrimez

I havn't had that error on line 0 yet… what does it mean? :)


Just added it here, means you don't have a final end.

putonajonny

2012-06-21 18:52:39

From: abu_jwka
Just added it here, means you don't have a final end.


There are other things as well, along with a load of errors that are non line specific for line specific mistakes :/

Master BAW

2012-06-21 19:46:49

ahh I hope I won't get it then XD would be very frustrating in my script of 2000+ lines :p

Edit : 3000+ NOW lol

Abu

2012-06-22 12:05:29

From: MasterCrimez
ahh I hope I won't get it then XD would be very frustrating in my script of 2000+ lines :p

Edit : 3000+ NOW lol


I'm guessing you have a bitmap there?