How to multiple a value.. - 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: How to multiple a value.. (
/showthread.php?tid=316451)
How to multiple a value.. -
Azzeto - 06.02.2012
How can I mutiply the value of like 60 milliseconds to be 1 minute? Like /mute [targetid] [timeofminutes] this was answered for me once, but I cant find my post, and I need to know this again. thanks in advance.
Re: How to multiple a value.. -
Ballu Miaa - 07.02.2012
5 * 60 * 1000 , this is 5 Minutes actually! you can define a variable to replace 5 over here or you can multiply this way!
Re: How to multiple a value.. -
Azzeto - 07.02.2012
I'm wondering if you can show me an example.. I know how to multiply with math.. But how do I apply it to pawn language? like PlayerInfo[playerid][Muted] 1000*60
Re: How to multiple a value.. -
Ballu Miaa - 07.02.2012
Can use it in vehicle's!
pawn Код:
CreateVehicle(522 ,2378.476562, -2068.486083, 13.057227, 270.743347, 45,46,5 * 60 * 1000);
Can use it in Timer's! PROTECTIONTIME is a defined constant to be used!
pawn Код:
SetTimerEx("AntiSpawnkill",PROTECTIONTIME*1000,0,"d",playerid);
And lot more ways you can implement it!