SetTimerEx with multiple float/integer parameters - 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 with multiple float/integer parameters (
/showthread.php?tid=534878)
SetTimerEx with multiple float/integer parameters -
jakejohnsonusa - 31.08.2014
The following Timer does not appear to be functioning, am I doing something wrong with how I am setting it up?
I have no errors.
pawn Код:
SetTimerEx("GateCloseSound", 7000, 0, "iiffff", playerid, pdgate1, 1588.9335, -1638.0698, 15.0512, 0.97);
pawn Код:
public GateCloseSound(playerid,objectid,xpos,ypos,zpos,speed)
{
MoveDynamicObject(objectid,xpos,ypos,zpos,speed);
PlayerPlaySound(playerid, 1153, xpos,ypos,zpos);
return 1;
}
Re: SetTimerEx with multiple float/integer parameters -
meitaredri - 31.08.2014
What you want to do ?
Pastebin the all command, I'll help you.
Re: SetTimerEx with multiple float/integer parameters -
mamorunl - 31.08.2014
I believe the correct parameter list would be:
pawn Код:
public GateCloseSound(playerid, objectid, Float:xpos, Float:ypos, Float:zpos, Float:speed);
Re: SetTimerEx with multiple float/integer parameters -
jakejohnsonusa - 31.08.2014
Quote:
Originally Posted by mamorunl
I believe the correct parameter list would be:
pawn Код:
public GateCloseSound(playerid, objectid, Float:xpos, Float:ypos, Float:zpos, Float:speed);
|
That was it!
I'm not sure how I missed that, thanks!