29.06.2011, 16:07
Quote:
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:
Код:
new hungertimer[MAX_PLAYERS]; new thirsttimer[MAX_PLAYERS]; forward hunger(playerid); forward thirsty(playerid); pawn Код:
pawn Код:
|
pawn Код:
hungertimer[playerid] = SetTimerEx("hunger", 1200000, true, "i", playerid);
thirsttimer[playerid] = SetTimerEx("thirsty", 1200000, true, "i", playerid);
pawn Код:
public hunger(playerid)
{
Hungry[playerid] += 1;
return 1;
}
public thirsty(playerid)
{
Thirsty[playerid] += 1;
return 1;
}