How to multiple a value..
#1

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.
Reply
#2

5 * 60 * 1000 , this is 5 Minutes actually! you can define a variable to replace 5 over here or you can multiply this way!
Reply
#3

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

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)