SA-MP Forums Archive
Cant find Missing barcket - 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: Cant find Missing barcket (/showthread.php?tid=488981)



Cant find Missing barcket - DarkLored - 20.01.2014

Hello guys so i was scripting and i deleted something and i think i deleted a missing barcket now i have 13 errors and i cant seem to find the missing barcket can you guys help me find it i will +REP
here is my script please find it
http://pastebin.com/mLJu10uH


Re: Cant find Missing barcket - Chenko - 20.01.2014

LIne 1880 is an extra bracket


Re: Cant find Missing barcket - DobbysGamertag - 20.01.2014

If you removed the certain pragma, and indented your code you'd find the error


Re: Cant find Missing barcket - DarkLored - 20.01.2014

what do you mean so if i remove the pragma it will show me where the missing barcket needs to be planted
[EDIT]Line 1880 in the extra barcket got removed but that dosent seem to fix the error


Re: Cant find Missing barcket - DobbysGamertag - 20.01.2014

http://pastebin.com/TLD0fQQv

Compile that, if you get errors, let us know what they are.

As for pragma tabsize 0. It basically tells the compiler that its ok to have 0 spaces (no indentation). Thus harder to spot wrongly placed closing braces.


Re: Cant find Missing barcket - DarkLored - 20.01.2014

still have the errors

Code:
freeroam.pwn(506) : warning 219: local variable "pname" shadows a variable at a preceding level
freeroam.pwn(529) : warning 219: local variable "pname" shadows a variable at a preceding level
freeroam.pwn(1127) : error 035: argument type mismatch (argument 1)
freeroam.pwn(1127) : error 035: argument type mismatch (argument 1)
freeroam.pwn(1128) : error 035: argument type mismatch (argument 3)
freeroam.pwn(1129) : error 035: argument type mismatch (argument 1)
freeroam.pwn(1129) : error 035: argument type mismatch (argument 1)
freeroam.pwn(1130) : error 035: argument type mismatch (argument 2)
freeroam.pwn(1123) : warning 203: symbol is never used: "string"
freeroam.pwn(1146) : error 017: undefined symbol "pname"
freeroam.pwn(1211) : error 017: undefined symbol "PINK"
freeroam.pwn(1232) : error 017: undefined symbol "pname"
freeroam.pwn(1881) : error 014: invalid statement; not in switch
freeroam.pwn(1881) : warning 215: expression has no effect
freeroam.pwn(1881) : error 001: expected token: ";", but found ":"
freeroam.pwn(1881) : error 029: invalid expression, assumed zero
freeroam.pwn(1881) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


13 Errors.
<<< Process finished. (Exit code 1)
================ READY ================



Re: Cant find Missing barcket - Sawalha - 20.01.2014

Fixed all errors
http://pastebin.com/Z7wK6ZFg


Re: Cant find Missing barcket - DarkLored - 20.01.2014

Nope its not fixed its because there is a missing baracket


Re: Cant find Missing barcket - Avi Raj - 20.01.2014

Find Word PINK and Replace it with COLOR_PINK.


Re: Cant find Missing barcket - DarkLored - 20.01.2014

I am telling you that there is a missing baracket not a problem with undefined symbol i know my last step but i cant seem to find it

its in the enum where all the things are stored for register system

and i have found a backup ~Requesting Lock~