O problema й o seguinte, ao digitar /admins, aparece "Unknow Command", sendo que o comando existe, abaixo esta o cуdigo que eu fiz!
pawn Код:
CMD:admins(playerid)
{
new Nome[24],string[80];
GetPlayerName(playerid,Nome,sizeof(Nome));
SendClientMessage(playerid, 0xE60000FF, "Administrador Online:");
for(new i = 0; i <= MAX_PLAYERS; i++)
{
if(Player[i][pAdmin] == 1)
{
format(string,sizeof(string),"Admin: %s [Moderador]",Nome);
SendClientMessage(playerid,-1,string);
}
else if(Player[i][pAdmin] == 2)
{
format(string,sizeof(string),"Admin: %s [Administrador]",Nome);
SendClientMessage(playerid,-1,string);
}
else if(Player[i][pAdmin] == 3)
{
format(string,sizeof(string),"Admin: %s [Master]",Nome);
SendClientMessage(playerid,-1,string);
}
else if(Player[i][pAdmin] == 4)
{
format(string,sizeof(string),"Admin: %s [Sub Dono]",Nome);
SendClientMessage(playerid,-1,string);
}
else if(Player[i][pAdmin] == 5)
{
format(string,sizeof(string),"Admin: %s [Dono]",Nome);
SendClientMessage(playerid,-1,string);
}
}
return 1;
}