Quote:
Originally Posted by Quickie
its not a bug
its just a coding mistakes
you can fix that with this
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/Timer", true)) { if(Connect[playerid]) { KillTimer(Connect[playerid]); Connect[playerid]=0; } Connect[playerid] = SetTimerEx("Test", 1000, true, "i", playerid); return 1; } if(!strcmp(cmdtext, "/Killer", true)) { if(Connect[playerid]) { KillTimer(Connect[playerid]); Connect[playerid]=0; } return 1; } return 0; }
|
That is true:
Quote:
It is a programming mistake; you can call it a bug, error, whatever; I call it a bug
|
It can be fixed in both ways, I prefer the simplest one
pawn Код:
KillTimer(Connect[playerid]);
Connect[playerid] = SetTimerEx("Test", 1000, true, "i", playerid);
But that code is good. Also, thanks for feedback, +REP