06.06.2011, 19:23
pawn Код:
if (strcmp("/admins", cmdtext, true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_PINK, ".::[ Name of script isnt to be mentioned ]::.");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdminLevel] >= 1 && PlayerInfo[i][pAdminLevel] <= 11
{
new printtext[64];
{
if(PlayerInfo[i][pAdminLevel] == 11) { printtext = "Owner / Scripter"; }
else if(PlayerInfo[i][pAdminLevel] == 10) { printtext = "Co Owner"; }
else if(PlayerInfo[i][pAdminLevel] == 9) { printtext = "Senior Administrator"; }
else if(PlayerInfo[i][pAdminLevel] == 7) { printtext = "Main Administrator"; }
else if(PlayerInfo[i][pAdminLevel] == 6) { printtext = "Administrator"; }
else if(PlayerInfo[i][pAdminLevel] == 5) { printtext = "Trail Administrator"; }
else if(PlayerInfo[i][pAdminLevel] == 4) { printtext = "Senior Moderator"; }
else if(PlayerInfo[i][pAdminLevel] == 3) { printtext = "Moderator"; }
else if(PlayerInfo[i][pAdminLevel] == 2) { printtext = "Trail Moderator"; }
else if(PlayerInfo[i][pAdminLevel] == 1) { printtext = "Suspended Admin"; }
else { printtext = "Unknown Rank"; }
}
GetPlayerName(i, sendername, sizeof(sendername));
{
format(string, sizeof(string), "%s - %s", printtext, sendername);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
}
}
}
}
return 1;
}
pawn Код:
(471) : error 029: invalid expression, assumed zero
(486) : warning 217: loose indentation
(486) : error 017: undefined symbol "sendername"
(486) : error 017: undefined symbol "sendername"
(486) : error 029: invalid expression, assumed zero
(486) : fatal error 107: too many error messages on one line