Timer stoped 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: Timer stoped working (
/showthread.php?tid=554882)
Timer stoped working -
cyberlord - 05.01.2015
Hello i need help with a timer he stoped after i put this code inside :
Код:
KiekTraukinistu = 0;
for(new i=0; i<=MAX_PLAYERS;i++)
{
if(PlayerInfo[i][JobID] == 21)
{
KiekTraukinistu += 1;
}
}
what can this code do to timer so he stoped working
Re: Timer stoped working -
mahdi499 - 05.01.2015
Can you be more specific please? what do you mean by stopped working? any errors?
Re: Timer stoped working -
Sid_Alexander - 05.01.2015
Quote:
Originally Posted by cyberlord
Hello i need help with a timer he stoped after i put this code inside :
Код:
KiekTraukinistu = 0;
for(new i=0; i<=MAX_PLAYERS;i++)
{
if(PlayerInfo[i][JobID] == 21)
{
KiekTraukinistu += 1;
}
}
what can this code do to timer so he stoped working
|
Are you assigning the value 1 to make him stop working on KiekTraukinistu ?
Re: Timer stoped working -
cyberlord - 05.01.2015
its gives my no errors but he not working eather there is more code ont that timer like add exp on each minute , and i put gametextforplayer for debug and yes if this code inside he just dont work if i remove him its start working and each minute gives my message i put insite gametextforplayer. that code should count my how mach player works 21id job so each minute he do that count and then i using KiekTraukinistu to check when player try to take that job and if KiekTraukinistu == 3 so i wont allow to take that job ( max 3 players work 21id job)