07.12.2011, 13:13
(
Последний раз редактировалось Kan; 07.12.2011 в 14:30.
)
Editado, Resolvido
public OnPlayerCommandReceived(playerid, cmdtext[])
{
return 1;
}
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
return 1;
}
Colocou ? \/
pawn Код:
|
return 1;
para
return true;
return 1;
return true;
return 0x01;
pawn Код:
pawn Код:
pawn Код:
|
return true;
return false;
return true = return 1;
return false = return 0;
Se eu por o return 1;
Aparece a mensagem de erro: SERVER:Unknow command.
Se eu por return true;
O comando fica normal!
CMD:admins(playerid,params[])
{
new RankText[51], str[78];
SendClientMessage(playerid,0x0080C0AA, "->Administradores Conectados: ");
new count=0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >=1)
{
GetPlayerName(i, str, 24);
if(UserInfo[i][pAdmin] >= 1)
{
if(PlayerInfo[i][pAdmin] = 1) { RankText = "Ajudante"; }
if(PlayerInfo[i][pAdmin] = 2) { RankText = "Corregedor"; }
if(PlayerInfo[i][pAdmin] = 3) { RankText = "Moderador"; }
if(PlayerInfo[i][pAdmin] = 4) { RankText = "Administrador"; }
if(PlayerInfo[i][pAdmin] = 5) { RankText = "Programador"; }
}
format(str,sizeof(str),"%s - %s",RankText,str);
SendClientMessage(playerid,0xFFFFFFAA,str);
}
}
}
return true;
}
Na verdade zcmd, so aceita
pawn Код:
|