07.10.2009, 16:58
Quote:
Originally Posted by Angel φ
public Timer()
{ for(new x; x < 200; x++) { if(IsPlayerConnected(x)) { // Your Code ; Don't use RETURN ! } } return 1; } |
and
Quote:
Originally Posted by Finn
pawn Код:
pawn Код:
pawn Код:
pawn Код:
pawn Код:
![]() |
so change that part
pawn Код:
zcmd(timer, playerid, params[])
{
KillTimer(timer); // Kill the timer.
timer = SetTimer("Timer", 120000, false); // Start the timer again.
return 1;
}
pawn Код:
OnPlayerCommandText(playerid,commandtext[])
{
if (strcmp(cmdtext, "/timer", true) == 0)
{
KillTimer(timer); // Kill the timer.
timer = SetTimer("Timer", 120000, false); // Start the timer again.
}
return 1;
}