Is it possible
#1

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

What do you wanna do with it?
Reply
#3

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

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

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

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);
Reply
#7

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
Reply
#8

it seems like it worked thanks
Reply
#9

Glad it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)