SetTimerEx supports natives? - 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 supports natives? (
/showthread.php?tid=375585)
SetTimerEx supports natives? -
iWhite - 07.09.2012
Like:
SetTimerEx("SetPlayerPos", 5000, false, "ifff", playerid, 0, 0, 0);
Re: SetTimerEx supports natives? -
Roko_foko - 07.09.2012
Why don't you try it?
Re: SetTimerEx supports natives? -
Vince - 07.09.2012
No, only public functions. But you can easily make wrappers like:
pawn Код:
forward @SetPlayerPos(playerid, Float:x, Float:y, Float:z);
@SetPlayerPos(playerid, Float:x, Float:y, Float:z) return SetPlayerPos(playerid, x, y, z);
pawn Код:
SetTimerEx("@SetPlayerPos", 5000, false, "ifff", playerid, 0, 0, 0);
Re: SetTimerEx supports natives? -
mobiliz - 07.09.2012
If you would want to do like SetPlayerPos you should make a public for it like
pawn Код:
foward SetPos(playerid);
public SetPos(playerid)
{
SetPlayerPos(playerid, blblblblblblblbl);
return 1;
}
then
SetTimerEx("SetPos", 5000, false, "ifff", playerid);