03.10.2012, 15:47
pawn Код:
CMD:admins(playerid,params[])
{
new Nome[24];
GetPlayerName(playerid, Nome,sizeof(Nome));
if(PlayerInfo[playerid][pAdmin] < 1) return 1;
new String2[500]; new String[500]; new Nomear[50];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pAdmin] < 1)
{
if(PlayerInfo[i][pAdmin] == 1) Nomear = "Moderador Global";
if(PlayerInfo[i][pAdmin] == 2) Nomear = "Administrador";
if(PlayerInfo[i][pAdmin] == 3) Nomear = "Admin De Confianзa";
if(PlayerInfo[i][pAdmin] == 4) Nomear = "Master";
if(PlayerInfo[i][pAdmin] == 5) Nomear = "Dono";
format(String,sizeof(String),"{FF0000}Nick: {FFFFFF}%s {FF0000}ID: {FFFFFF}%d {FF0000}Rank: {FFFFFF}%s\n",Nome(i),i,Nomear); // erro aqui ;( todos ;(
strcat(String2,String,sizeof(String2));
}
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
format(String,sizeof(String),"{FF0000}Nenhum(a) Administrador(a) Online!");
Msg(playerid, ROSA,String);
}
return 1;
}
pawn Код:
(929) : error 012: invalid function call, not a valid address
(929) : warning 215: expression has no effect
(929) : error 001: expected token: ";", but found ")"
(929) : error 029: invalid expression, assumed zero
(929) : fatal error 107: too many error messages on one line