30.07.2009, 05:19
ok well i been programming a bit again and ran into a weird issue with 1 of my for bugs
Код:
new IsPlayerWorking[ MAX_PLAYERS ];
public othercounting()
{
if (dtime > 0)
{
new str[5];
format(str, sizeof str, "~w~%d", dtime);
for( new i = 0; i <= MAX_PLAYERS; i ++ ) // ISSUE IS HERE WITH MAX_PLAYERS
{
if (IsPlayerWorking[i])
{
GameTextForPlayer(i, str, 2500, 3);
}
}
dtime --;
dtimer = SetTimer("othercounting", 1000, 0);
}

