SRL Archive - OSR Help

Help (compiling error)


weequ

2011-02-01 16:49:28

[Hint] C:\Program Files\Simba\Includes\SRL/SRL/core/antirandoms/forester.scar(329:3): Variable 'I' never used at line 328
[Hint] C:\Program Files\Simba\Includes\SRL/SRL/core/antirandoms/forester.scar(329:3): Variable 'CTS' never used at line 328
[Hint] C:\Program Files\Simba\Includes\SRL/SRL/core/antirandoms/forester.scar(330:3): Variable 'P' never used at line 329
[Hint] C:\Program Files\Simba\Includes\SRL/SRL/core/antirandoms/forester.scar(331:3): Variable 'OBJS' never used at line 330
[Hint] C:\Program Files\Simba\Includes\SRL/SRL/core/antirandoms/forester.scar(332:3): Variable 'DONE' never used at line 331
[Error] (38:24): Invalid number of parameters at line 37
Compiling failed.
Line 37:
Players := GetPlayers;

I have had the script working before…

Echo_

2011-02-01 19:41:04

Are you missing a semicolon on line 36?

RISK

2011-02-01 19:44:43

A semicolon would say so in the error. A missing parameter is when something is missing from the parameters like: "Mouse(CX, CY, RX, RY, Boolean)" would be correct, but a missing parameter would be: "Mouse(CX, CY, RX, RY)".

From: Echo_
Are you missing a semicolon on line 36?


@ Initial Question : Wouldn't "Players" be followed by "[*]" because it is an array? If so, try changing it to be something like that. Replace the asterisk with a valid thing though.

mormonman

2011-02-01 20:37:02

Its GetAllPlayers now. GetPlayers is a different function.

weequ

2011-02-01 20:41:42

I just found out that I have to use GetAllPlayers now. It does the same thing.

Edit: Pwned by mormonman :D

mormonman

2011-02-01 20:42:11

From: mormonman
Its GetAllPlayers now. GetPlayers is a different function.


From: antti mies
I just found out that I have to use GetAllPlayers now. It does the same thing.


:D !