SA-MP Forums Archive
[Ajuda] Bug no comando - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Bug no comando (/showthread.php?tid=589237)



Bug no comando - CZ - 16.09.2015

Alguem sabe oque hб de errado com o comando que fis?

Eu digito /cmd pra ve os comando de admin e da unknow command dps disso nenhum comandos
mais funciona do sv

pawn Код:
CMD:cmd(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1)                        return SendClientMessage(playerid, CorErro, "Vocк precisa ser uma Administrador level 1 para usar este comando");
    new admincmds[600];
    strins(admincmds,"{FF0000}Comnados para Administradores\n",strlen(admincmds));
    strins(admincmds,"\n",strlen(admincmds));
    strins(admincmds,"{00FF00}Administrador Level 1\n",strlen(admincmds));
    strins(admincmds,"{D3D3D3}/a - /Av - /Setarskin - /Setarvida - /Setarcolete\n",strlen(admincmds));
    strins(admincmds,"{D3D3D3}/Criarcarro - /Kick - /Cadeia - /Tapa - /Ir - /Trazer - /Contagem - /Tv - /Dararma - /Idarmas\n",strlen(admincmds));
    strins(admincmds,"{D3D3D3}/Desarmar - /Respawnvehs - /Respawnveh - /Explodir - /Banir - /Agendarban - /Agendarcadeia\n",strlen(admincmds));
    strins(admincmds,"{D3D3D3}/Tempban - /Ircarro\n",strlen(admincmds));
    strins(admincmds,"{00FF00}Administrador Level 2\n",strlen(admincmds));
    strins(admincmds,"{D3D3D3}/Jogar - /Calar - /Descalar - /Limparchat - /Aviso - /Banirip\n",strlen(admincmds));
    strins(admincmds,"{00FF00}Administrador Level 3\n",strlen(admincmds));
    strins(admincmds,"{D3D3D3}/Ejetar - /Destroyveh - /Congelar - /Descongelar\n",strlen(admincmds));
    strins(admincmds,"{00FF00}Administrador Level 4\n",strlen(admincmds));
    strins(admincmds,"{D3D3D3}/Setarmundo\n",strlen(admincmds));
    strins(admincmds,"{00FF00}Administrador Level 5\n",strlen(admincmds));
    strins(admincmds,"{D3D3D3}/Chat - /Desbanir - /Desbanirip - /Disfarce - /Congelartodos\n",strlen(admincmds));
    strins(admincmds,"{D3D3D3}/Descongelartodos - /Dardinheiro - /Setardinheiro - /Setarscore\n",strlen(admincmds));
    strins(admincmds,"{D3D3D3}/Clima - /Vidatodos - /Coletetodos - /Armatodos - /Esconder\n",strlen(admincmds));
    strins(admincmds,"{D3D3D3}/Fakekick - /Fakeban\n",strlen(admincmds));
    strins(admincmds,"{00FF00}Administrador Level 6\n",strlen(admincmds));
    strins(admincmds,"{D3D3D3}/Daradmin - /Tiraradmin\n",strlen(admincmds));
    strins(admincmds,"{00FF00}Administrador Level 7\n",strlen(admincmds));
    strins(admincmds,"{D3D3D3}/Gmx - /Senhaserver\n",strlen(admincmds));
    strins(admincmds,"\n",strlen(admincmds));
    ShowPlayerDialog(playerid,9947, DIALOG_STYLE_MSGBOX, "{FFFFFF}Comandos de Admin",admincmds, "{FF0000}X", "");
    return 1;
}



Re: Bug no comando - Kamper - 16.09.2015

troca strins por strcat


Re: Bug no comando - Nixtren - 17.09.2015

Aproveita e leia esse meu tуpico, o CrashDetect poderб ser muito ъtil:
https://sampforum.blast.hk/showthread.php?tid=587209