So many errors in my script
#1

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
Reply
#2

Fixed.
http://pastebin.com/giRDZd5E
Reply
#3

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
Reply
#4

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

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

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
Reply
#7

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

http://pastebin.com/u6L2PKSh
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)