I need help getting the admin online totals
#7

My mistake, correction:

pawn Код:
for(new i=0; i<GetMaxPlayers(); i++)
{
    if(!IsPlayerConnected(i)) continue; // Not connected, continue
    if(!pLevel[i]) continue; // Not admin, continue
    if(!count) format(string, sizeof(string), "%s", pName[i]); // The first
    else format(string, sizeof(string), "%s\n%s", string, pName[i]); // Not the first, start with \n
    count++;
}
if(!count) return ShowPlayerDialog(.. no admins online ..); // No admins, display the 'no admins' dialog and stop the script there (return)
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, "Admins Online:", string, "OK", ""); // Script carried on, show list of admins
I used strcat before and it fucked stuff up, so I just stick to format.
Reply


Messages In This Thread
I need help getting the admin online totals - by GAMER_PS2 - 21.10.2011, 11:41
Re: I need help getting the admin online totals - by JaTochNietDan - 21.10.2011, 11:46
Re: I need help getting the admin online totals - by GAMER_PS2 - 21.10.2011, 11:52
Re: I need help getting the admin online totals - by Ensconce - 21.10.2011, 12:55
Re: I need help getting the admin online totals - by MP2 - 21.10.2011, 13:30
Re: I need help getting the admin online totals - by JaTochNietDan - 21.10.2011, 13:52
Re: I need help getting the admin online totals - by MP2 - 21.10.2011, 14:12

Forum Jump:


Users browsing this thread: 2 Guest(s)