Nothing working - 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: Nothing working (
/showthread.php?tid=309768)
Nothing working -
Twinki1993 - 09.01.2012
Well only thing that is working in my script now is "OnPlayerKeyState" and it's not working properly... No cooldown on it even I set it! Here's the code.
http://pastebin.com/DaTBkj8k
When I try to use any command it says "Unknown command" and only thing that is working is when I press key "C" it actually works but without the cooldown....
Re: Nothing working -
Tanush123 - 09.01.2012
pawn Код:
if(Cooldown[playerid] == 1) return SendClientMessage(playerid,COLOR_RED,"<!>Please Wait Before Using This Command Again!");
. you forgot == 1) == 0 will make the variable 0 and == 1 will make it 1. so with your
change it to
pawn Код:
if(Cooldown[playerid] == 1)
( ONLY if(Cooldown[playerid]) )
Re: Nothing working -
Twinki1993 - 09.01.2012
What about the script? Why ain't any of the cmds working?