OnPlayerUpdate function problem.(bad performance)
#2

Call the function all 1 seconds. With this script is more stable.

PHP код:
forward IsPlayerAtHiddenPackage(playerid);
public 
IsPlayerAtHiddenPackage(playerid)
{
    
// Your script
    
return 1;
}

public 
OnPlayerConnect(playerid)
{
    
SetTimerEx("IsPlayerAtHiddenPackage"1000true"i"playerid);
    return 
1;

Reply


Messages In This Thread
OnPlayerUpdate function problem.(bad performance) - by ProRakNet - 19.03.2016, 20:39
Re: OnPlayerUpdate function problem.(bad performance) - by YouServ - 19.03.2016, 20:57
Re: OnPlayerUpdate function problem.(bad performance) - by IstuntmanI - 19.03.2016, 20:58
Re: OnPlayerUpdate function problem.(bad performance) - by ProRakNet - 19.03.2016, 21:42

Forum Jump:


Users browsing this thread: 1 Guest(s)