10.08.2015, 13:33
http://i.imgur.com/MR43DgK.png
new index = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] == 0) continue;
index ++;
if(index == 1) { SendClientMessage(playerid, COLOR_GRAD2, "[ADMINS ONLINE]"); }
format(string, 456, "%s (%d)", index, GetName(i),PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(index == 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, " Nu este nici un administrator online acum.");
}
Why the fuck is only [4] ?
new index = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] == 0) continue;
index ++;
if(index == 1) { SendClientMessage(playerid, COLOR_GRAD2, "[ADMINS ONLINE]"); }
format(string, 456, "%s (%d)", index, GetName(i),PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
if(index == 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, " Nu este nici un administrator online acum.");
}
Why the fuck is only [4] ?