Warnings And Error fixing? - 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: Warnings And Error fixing? (
/showthread.php?tid=360737)
Warnings And Error fixing? -
arko123 - 18.07.2012
\gamemodes\Arko-RP.pwn(26449) : warning 217: loose indentation
\gamemodes\Arko-RP.pwn(26451) : warning 209: function "cmd_lock" should return a value
\gamemodes\Arko-RP.pwn(26452) : error 054: unmatched closing brace ("}")
how would i fix theres warnings and that one error in my gamemode
Here is the code:
http://pastebin.com/kDz1654J
Re: Warnings And Error fixing? -
tyler12 - 18.07.2012
return 1;
}
Re: Warnings And Error fixing? -
arko123 - 18.07.2012
Comment removed
Re: Warnings And Error fixing? -
arko123 - 18.07.2012
Wait now when i go to /lock the car it locks then unlocks straight after i would i fix that?
Respuesta: Warnings And Error fixing? -
HarlemSAMP - 18.07.2012
You'll have to add a return 1; to prevent a looping there.
Re: Respuesta: Warnings And Error fixing? -
arko123 - 18.07.2012
Quote:
Originally Posted by HarlemSAMP
You'll have to add a return 1; to prevent a looping there.
|
Where do i add the return?
Re: Respuesta: Warnings And Error fixing? -
Ranama - 19.07.2012
Quote:
Originally Posted by arko123
Where do i add the return?
|
After you've set the variable locked to true/false you just write "return 1;" and it will return and exicute the running of the command