Timer stoped working
#1

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

Can you be more specific please? what do you mean by stopped working? any errors?
Reply
#3

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 ?
Reply
#4

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)