25.07.2012, 10:31
EDIT: To late... why!
You had one extra bracket above return 1;
Plus, properly indent your code, this looks like horse shit. And use [ pawn] and [ /pawn] tags.
You had one extra bracket above return 1;
Plus, properly indent your code, this looks like horse shit. And use [ pawn] and [ /pawn] tags.
pawn Code:
dcmd_admins(playerid, params[])
{
#pragma unused params
new string[2048];
new sendername[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PInfo[playerid][Level] >= 3)
{
GetPlayerName(i , sendername, sizeof(sendername));
format(string, sizeof(string),"The following admin(s) are currently online:\n %s %s (ID:%d): [Level %i]\n", string,sendername, i,PInfo[playerid][Level]);
}
}
}
ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Victim Online Admins List...",string,"OK","Cancel");
}
else
{
ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Victim Online Admins List...","No administrators online","OK","Cancel");
}
return 1;
}