Log in

View Full Version : SRL include error



Crit
08-02-2012, 06:52 AM
Hi All,
since I have update Simba and all the other extensions and plugins this error pops at me everytime i try to compile a script:
[Error] C:\Simba\Includes\SRL/SRL.Simba(6:109): Semicolon (';') expected at line 5
Compiling failed.
This only happens when i try to compile my own scripts not if i take someone elses. Anybody know why and how to fix it?
Thanks
-Crit

Yes i did fill out declare players, just removed it for upload.
BTW here is the script i tried to compile:

blinkblink
08-02-2012, 07:06 AM
program startup you are missing ";"
program startup;

as well for
procedure DeclarePlayers

Crit
08-02-2012, 07:08 AM
You don't need that but i saw that i forgot to put a semicolon behing the program.
Thank you

blinkblink
08-02-2012, 07:11 AM
You don't need that but i saw that i forgot to put a semicolon behing the prgram.
Thank you

Well I see every single script has it on all procedures... so I am just following what they all use in their code
I can bring you many scripts that have... Procedure DeclarePlayers;

http://villavu.com/forum/showthread.php?t=81178
http://villavu.com/forum/showthread.php?t=78912
http://villavu.com/forum/showthread.php?t=69217
http://villavu.com/forum/showthread.php?t=67587
http://villavu.com/forum/showthread.php?t=75070

P1ng
08-02-2012, 07:32 AM
End all lines with a semi-colon unless followed by another pre-set statement i.e. do, else, then, etc.

May not always be necessary, but it's a really good habit to get into.

Crit
08-02-2012, 07:33 AM
@BlinkBlink Oh sorry, i read ur post wrong, i thought you said i need the "" tags. Yes you were right that was my mistake. Thank you very much