Bug - 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: Bug (
/showthread.php?tid=523635)
Bug -
CodyAlzack - 03.07.2014
I created a command and it looks like this
Код:
CMD:signcheck(playerid, params[])
{
if(JustReported[playerid] > 0)
{
SendClientMessageEx(playerid, COLOR_GREY, "Wait 1 hour to sign again!");
return 1;
}
JustReported[playerid]=3600;
GivePlayerCash(playerid, 50000);
SendClientMessageEx(playerid, COLOR_WHITE, "You have successfully signed your check.");
return 1;
}
But when im relogging then i can do it again without waiting again...
Re: Bug -
Need4samp - 03.07.2014
Check if the " JustReported " saving
Re: Bug -
CodyAlzack - 03.07.2014
I dont think it is, but i just took the JustReported from /report command.. i dont nknow how tp set a timer or something like that
Re: Bug -
greentarch - 03.07.2014
Did you save it somewhere? Like an .ini file?
Re: Bug -
CodyAlzack - 03.07.2014
Nope?
Re: Bug -
greentarch - 03.07.2014
Quote:
Originally Posted by CodyAlzack
Nope?
|
If you want it loads when you relog, you must save it in a file.
Read some Y_INI tutorials on the forums.
Re: Bug -
CodyAlzack - 03.07.2014
in a pwn/amx in a filterscript

