14.05.2015, 08:58
It doesn't ever seem to, the function RefreshXPBar is called right where other TD functions are called, right inside the OnPlayerSpawn callback, others work, this one doesn't.
PHP код:
public OnPlayerSpawn(playerid)
{
...
RefreshXPBar(playerid); // not working
...
RefreshHud(playerid); // working well
KillTimer(phRefreshTimer[playerid]);
phRefreshTimer[playerid] = SetTimerEx("RefreshHud", 2000, true, "i", playerid);
}