08.04.2017, 04:12
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.
The Second Way:
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);
PHP код:
SetTimer("Example", 1000, 1);
public Example()
{
new pvid = GetPlayerVehicleID(playerid); //just an example I know it won't work
}