SetTimerEx problem - 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: SetTimerEx problem (
/showthread.php?tid=285845)
SetTimerEx problem -
Bartando - 25.09.2011
hello guys ,
i have Coocking pizza in my RP
but i have this
PHP код:
if(listitem == 2)
{
if(PizzaSuroviny[playerid] == false) return SendClientMessage(playerid, 0x00FF00AA, "[Pizza] {FFFFFF}You have not a (bread).");
if(PizzaVoda[playerid] == false) return SendClientMessage(playerid, 0x00FF00AA, "[Pizza] {FFFFFF}You have not water.");
SetTimerEx("PizzaOven",200000,0,"i",playerid);
SendClientMessage(playerid, 0x00FF00AA, "[Pizza] {FFFFFF}About half 4 minutes , pizza will be done.");
DisablePlayerCheckpoint(playerid);
}
but this doesnt function SetTimerEx("PizzaOven",200000,0,"i",playerid);
and public for PizzaOven
PHP код:
public PizzaOven(playerid)
{
PizzaJob[playerid] = 2;
SetPlayerCheckpoint(playerid, 1367.5439,248.2646,19.5669, 2);
PizzaVTroube[playerid] = true;
SCM(playerid,0x00FF00FF,"[Pizza] Pizza is done");
PlayerPlaySound(playerid,1083,0,0,0);
}
When i see [Pizza] {FFFFFF}About half 4 minutes , pizza will be done. and waiting 5 minutes
Timer Nothing Do
Ohh Ohh sorry , Now its function i dont know how
Re: SetTimerEx problem -
iPLEOMAX - 25.09.2011
The code is supposed to work.. o_O
Are you sure there is nothing wrong with SCM(); ?
Re: SetTimerEx problem -
Bartando - 25.09.2011
ohh sory NOW its all ok
BTW: i have #define SCM SendClientMessage
:P