Different Timer - 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: Different Timer (
/showthread.php?tid=572080)
Different Timer -
ChuckyBabe - 25.04.2015
Hello what is the differences about
Код:
SetTimerEx("DelayedKick", 250, false, "i", giveplayerid);
with
Код:
SetTimerEx("DelayKick", 1000, false, "d", giveplayerid);
I mean what is "i" and "d" what is the differences in the both timer? +1 Rep
Re: Different Timer -
Crayder - 25.04.2015
Integer and decimal, they are the same in pawn.
Re: Different Timer -
ChuckyBabe - 25.04.2015
Quote:
Originally Posted by Crayder
Integer and decimal, they are the same in pawn.
|
Hmm, i thought 'i' will kick the player who is using it. And how about 'd' ?
Re: Different Timer -
Crayder - 25.04.2015
Quote:
Originally Posted by ChuckyBabe
Hmm, i thought 'i' will kick the player who is using it. And how about 'd' ?
|
'i' - Integer
'd' - Decimal
Those are called specifiers, these two specifically act the same in pawn (our, pawn, that is).
The difference is not the specifiers, it's your callbacks being called. You have two different callbacks ("DelayedKick" and "DelayKick").