SA-MP Forums Archive
So many errors in my script - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: So many errors in my script (/showthread.php?tid=533852)



So many errors in my script - brandypol - 26.08.2014

Ok I searched on the forum for another stats saving script and I found this one :

https://sampforum.blast.hk/showthread.php?tid=234691

I followed every single step the guys told us to do but when I compiled I got those errors :

(582) : error 003: declaration of a local variable must appear in a compound block
(584) : error 021: symbol already defined: "GetPlayerName"
(586) : error 010: invalid function or declaration
(588) : error 021: symbol already defined: "dini_Create"
(589) : error 021: symbol already defined: "dini_IntSet"
(590) : error 021: symbol already defined: "dini_IntSet"
(591) : error 021: symbol already defined: "dini_IntSet"
(592) : error 021: symbol already defined: "dini_IntSet"
(593) : error 021: symbol already defined: "dini_IntSet"
(595) : error 021: symbol already defined: "SetPlayerMoney"
(595) : error 010: invalid function or declaration
(595 -- 598) : error 054: unmatched closing brace ("}")
(595 -- 598) : fatal error 107: too many error messages on one line

I REALLY need help what can I do to correct my script ??
Here's mmy script :

http://pastebin.com/R3tccypg

Please help me and thanks for your cooperation


Re: So many errors in my script - Thogy - 26.08.2014

Fixed.
http://pastebin.com/giRDZd5E


Re: So many errors in my script - brandypol - 26.08.2014

Quote:
Originally Posted by Thogy
Посмотреть сообщение
Thanks a lot dude ! but now there is 20 warnings :/ but its better than having a script with a lot of errors


Re: So many errors in my script - SnG.Scot_MisCuDI - 26.08.2014

The warnings are most likely loose indentations. Fix the indentation to remove the warnings


Re: So many errors in my script - Stanford - 26.08.2014

Please post the rest of the warnings & errors so we will be able to give you solutions.


Re: So many errors in my script - brandypol - 26.08.2014

Quote:
Originally Posted by Stanford
Посмотреть сообщение
Please post the rest of the warnings & errors so we will be able to give you solutions.
ok here are the warnings :

(113) : warning 217: loose indentation
(289) : warning 217: loose indentation
(290) : warning 217: loose indentation
(482) : warning 217: loose indentation
(584) : warning 217: loose indentation
(607) : warning 217: loose indentation
(612) : warning 217: loose indentation
(624) : warning 217: loose indentation
(648) : warning 217: loose indentation
(650) : warning 217: loose indentation
(873) : warning 217: loose indentation
(884) : warning 217: loose indentation
(896) : warning 217: loose indentation
(897) : warning 217: loose indentation
(898) : warning 217: loose indentation
(917) : warning 217: loose indentation
(933) : warning 217: loose indentation
(945) : warning 217: loose indentation

And for the script go see in the fixed script that Thogy posted here it is :

http://pastebin.com/giRDZd5E

Thanks a lot for your help guys


Re: So many errors in my script - Thogy - 26.08.2014

Just copy the code, which is on the bottom of pastebin page.


Re: So many errors in my script - silenthill - 26.08.2014

http://pastebin.com/u6L2PKSh