31.10.2009, 18:10
Hi there.
This loop is not working and I need to know why.
This loop is not working and I need to know why.
Код:
public sotd() { new string[128],planame[MAX_PLAYER_NAME]; for(new i=0; i<MAX_PLAYERS; i++) { if(kills[i] > highestkills) { bestkiller[i] = 1; GetPlayerName(i, planame, sizeof(planame)); format(string, sizeof(string), "Soldier of the day: %s [%d kills]", planame, highestkills ); SendClientMessageToAll(GREEN, string); } else { if(!highestkills < kills[i]) { highestkills = kills[i]; } } } }