SRL Archive - OSR Help

Need some help compiling wont compile..


Fog856

2012-02-08 09:28:38

If FindObjCustom(seX, seY, ['Chop', 'down', 'p' d'], [2700605, 1779752], 10)]

Can anyone fix this line?

Heres debug box.

[Error] (66:51): Closing square bracket (']') expected at line 65
Compiling failed.
[Error] (66:51): Closing square bracket (']') expected at line 65
Compiling failed.
[Error] (66:19): Invalid number of parameters at line 65
Compiling failed.
[Error] (66:51): Closing square bracket (']') expected at line 65
Compiling failed.


Where do You need the ]??

Smidqe

2012-02-08 09:52:17

From: Fog856
If FindObjCustom(seX, seY, ['Chop', 'down', 'p' d'], [2700605, 1779752], 10)]

Can anyone fix this line?

Heres debug box.

[Error] (66:51): Closing square bracket (']') expected at line 65
Compiling failed.
[Error] (66:51): Closing square bracket (']') expected at line 65
Compiling failed.
[Error] (66:19): Invalid number of parameters at line 65
Compiling failed.
[Error] (66:51): Closing square bracket (']') expected at line 65
Compiling failed.


Where do You need the ]??


If FindObjCustom(seX, seY, ['Chop', 'down', 'p' d'], [2700605, 1779752], 10)]

Here is the fixed line(bottom one). It says that it's missing a square bracket because you forgot a ' from the d. Also you forgot a comma after 'p'.

Just compare these (upper is yours and bottom is fixed one) and you'll find where the problem was.
  if FindObjCustom(seX, seY, ['Chop', 'down', 'p', 'd'], [2700605, 1779752], 10) then