Need some help
#13

You're welcome.

Just another suggestion: Use KillTimer function to kill the timer when player disconnects (at OnPlayerDisconnect).

Example:
pawn Код:
new myTimer[MAX_PLAYERS];
pawn Код:
public MyFunction(playerid)
{
  // code.
  return 1;
}
pawn Код:
public OnPlayerConnect(playerid)
{
  myTimer[playerid] = SetTimerEx("MyFunction", 1000, 1, "i", playerid);
  return 1;
}
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
  KillTimer(myTimer[playerid]);
  return 1;
}
Reply


Messages In This Thread
Need some help - by Sayaron - 12.09.2009, 00:57
Re: Need some help - by Sayaron - 12.09.2009, 10:04
Re: Need some help - by Correlli - 12.09.2009, 10:08
Re: Need some help - by Sayaron - 12.09.2009, 10:11
Re: Need some help - by Correlli - 12.09.2009, 10:12
Re: Need some help - by Sayaron - 12.09.2009, 10:16
Re: Need some help - by MadeMan - 12.09.2009, 10:21
Re: Need some help - by Sayaron - 12.09.2009, 17:41
Re: Need some help - by Correlli - 12.09.2009, 17:46
Re: Need some help - by Sayaron - 12.09.2009, 18:03
Re: Need some help - by Correlli - 12.09.2009, 18:05
Re: Need some help - by Sayaron - 12.09.2009, 18:21
Re: Need some help - by Correlli - 12.09.2009, 18:28
Re: [SOLVED]Need some help - by Sayaron - 12.09.2009, 18:56
Re: [SOLVED]Need some help - by Correlli - 12.09.2009, 19:26
Re: Need some help - by Sayaron - 12.09.2009, 19:47
Re: Need some help - by Correlli - 12.09.2009, 19:55
Re: Need some help - by Sayaron - 12.09.2009, 20:30
Re: Need some help - by Correlli - 12.09.2009, 20:39
Re: Need some help - by Sayaron - 12.09.2009, 20:46

Forum Jump:


Users browsing this thread: 4 Guest(s)