SA-MP Forums Archive
Is it possible - 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: Is it possible (/showthread.php?tid=423479)



Is it possible - P3DRO - 17.03.2013

Is it possible to do this?
Код:
SetTimerEx("Kicker_CMD", 1, false, "i", id, playerid);



Re: Is it possible - Luis- - 17.03.2013

What do you wanna do with it?


Re: Is it possible - mastermax7777 - 17.03.2013

SetTimerEx("Kicker_CMD", 1, false, "i", playerid);
SetTimerEx("Kicker_CMD", 1, false, "i", id);


Re: Is it possible - P3DRO - 17.03.2013

i wanna use a timer to call a function that receives two different arguments


Re: Is it possible - Luis- - 17.03.2013

Yes that's possible,
Код:
SetTimerEx("Kicker_CMD", 1, false, "ii", id, playerid);
@mastermax7777
That'd just call the timer twice..


Re: Is it possible - kamzaf - 17.03.2013

Quote:
Originally Posted by P3DRO
Посмотреть сообщение
i wanna use a timer to call a function that receives two different arguments
For each new argument you want to create, think about sscanf and how it uses "d" or "u" or "i", in this case if your talking about 2 player ids, then you increase "i" to "ii". You would do it for every new argument you have.

Like:
Код:
SetTimerEx("Kicker_CMD", 1, false, "iii", id, playerid,player3);
or

like u were asking for:

Код:
SetTimerEx("Kicker_CMD", 1, false, "ii", id, playerid);



Re: Is it possible - mastermax7777 - 17.03.2013

Quote:
Originally Posted by -Luis
Посмотреть сообщение
Yes that's possible,
Код:
SetTimerEx("Kicker_CMD", 1, false, "ii", id, playerid);
@mastermax7777
That'd just call the timer twice..
lol ok but i wasnt sure what he realy mean it :d


Re: Is it possible - P3DRO - 17.03.2013

it seems like it worked thanks


Re: Is it possible - Luis- - 17.03.2013

Glad it worked