Is this timer faster or same
#1

Hello,
I have a timer but two ways of it to script, just figuring out that the first way is faster or not.
The First way: I inherit the declared pvid into the timer.
PHP код:
new pvid = GetPlayerVehicleID(playerid);
SetTimerEx("Example", 1000, 1, "i", pvid); 
The Second Way:
PHP код:
SetTimer("Example", 1000, 1);
public 
Example()
{
     new 
pvid = GetPlayerVehicleID(playerid); //just an example I know it won't work
} 
Reply
#2

i think you should do a test, use both way to print a message on the console
Reply
#3

I think the first would be more faster because the second will create a variable and store a value into it everytime you call.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)