06.03.2010, 11:08
i have a problem.
I like to get the max gang score from all gangs.
but dont work?
In game does not come the right gang with the max score, seperate come the first gang.
my code:
I like to get the max gang score from all gangs.
but dont work?
In game does not come the right gang with the max score, seperate come the first gang.
my code:
pawn Код:
if(strcmp("/toplist", cmd, true) == 0)
{
for(new i = 0; i < MAX_GANGS; i++)
{
if(GangInfo[i][gangScore] > i)
{
format(string, sizeof(string), "%d", GangInfo[i][gangScore]);
SendClientMessageToAll(rot,string);
}
}
}