29.06.2011, 15:34
Hello, I got a problem with my timers, I am using progress bars, When you are more players online, The hunger & drink bar gets bigger alot quicker. For some reason. This is my timers:
OnPlayerSpawn
Anyone knows the problem?
Код:
new hungertimer[MAX_PLAYERS]; new thirsttimer[MAX_PLAYERS]; forward hunger(playerid); forward thirsty(playerid);
pawn Код:
hungertimer[playerid] = SetTimerEx("hunger", 1200000, false, "i", playerid);
thirsttimer[playerid] = SetTimerEx("thirsty", 1200000, false, "i", playerid);
pawn Код:
public hunger(playerid)
{
Hungry[playerid] += 1;
hungertimer[playerid] = SetTimerEx("hunger", 1200000, false, "i", playerid);
return 1;
}
public thirsty(playerid)
{
Thirsty[playerid] += 1;
thirsttimer[playerid] = SetTimerEx("thirsty", 1200000, false, "i", playerid);
return 1;
}