Why my timer dont start?! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Why my timer dont start?! (
/showthread.php?tid=282838)
Why my timer dont start?! -
BloodGod - 12.09.2011
Up:
Код:
new timer1;
new timer2;
new dis[MAX_PLAYERS];
forward htimer(playerid);
Forward
Код:
public htimer(playerid)
{
dona[playerid] = 0;
SendClientMessage(playerid, COLOR_RED, "[QUESTION] "green"You can "white"ask/answer "green"a question again! "grey"/h [TEXT]");
return 1;
}
cmd
Код:
timer2 = SetTimer("htimer", 50000, false);
new pname[24];
new string[128];
dis[playerid] = 1;
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "[QUESTION] "yellow"- %s asks: "green"%s - "grey"[/A(nswer) (/h [TEXT])", pname,params);
SendClientMessageToAll(COLOR_RED, string);
SendClientMessage(playerid, COLOR_RED, "[QUESTION] "green"You can "white"ask "green"a question again over 50 seconds!");
return 1;
everything works exept the timer
yea the command is fine to, only copied a bit of the cody, not the zcmd part etc
how to let it work?
Re: Why my timer dont start?! -
Voldemort - 12.09.2011
new timer2[MAX_PLAYERS];
timer2[playerid] = SetTimer
Ex("htimer", 50000, false,
"i",playerid);
Re: Why my timer dont start?! -
Allan Kardec - 12.09.2011
Try change false for true