Warnings And Error fixing?
#1

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

return 1;
}
Reply
#3

Comment removed
Reply
#4

Wait now when i go to /lock the car it locks then unlocks straight after i would i fix that?
Reply
#5

You'll have to add a return 1; to prevent a looping there.
Reply
#6

Quote:
Originally Posted by HarlemSAMP
Посмотреть сообщение
You'll have to add a return 1; to prevent a looping there.
Where do i add the return?
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)