#1

Hello.

I have timer for each player:

Timer = SetTimerEx("function", 1000, true, "d", playerid);

If player was disconnected from server timer must be killed.

KillTimer(Timer);

But this timer will be killed for this player or for all players? Sorry for my bad english.))
Reply
#2

no

-Dr.Lozer
Reply
#3

This timer will be killed for all the players. U need to do it like this:

pawn Код:
new Timer[MAX_PLAYERS];
Timer[playerid] = SetTimerEx("function", 1000, true, "d", playerid);

KillTimer(Timer[playerid]);
Next time please use Tags [ pawn ][ /pawn ] for your codes.
Reply
#4

Big thanks, I thought as much.)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)