SA-MP Forums Archive
[Ajuda] Erro CMD - 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] Erro CMD (/showthread.php?tid=611884)



Erro CMD - LuizZ14 - 11.07.2016

alguem ajuda a resolver esse erro pfv

Quote:

C:\Users\luiz\Desktop\GM SAMP\gamemodes\GM.pwn(83) : error 029: invalid expression, assumed zero
C:\Users\luiz\Desktop\GM SAMP\gamemodes\GM.pwn(83) : error 017: undefined symbol "cmd_anunciar"
C:\Users\luiz\Desktop\GM SAMP\gamemodes\GM.pwn(83) : error 029: invalid expression, assumed zero
C:\Users\luiz\Desktop\GM SAMP\gamemodes\GM.pwn(83) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


ai o comando:

Quote:

{
CMD:anunciar(playerid, params[])
{
new anuncio[128], formato[128];
if(sscanf(params, "s[128]", anuncio)) return SendClientMessage(playerid, vermelho, "Uso corrreto: /anunciar [TEXTO]");
format(formato, sizeof(formato), "Anuncio: %s", anuncio)
SendClientMessageToAll(azul, formato);
return 1;
}
return 0;
}




Re: Erro CMD - F1N4L - 11.07.2016

Detalhes...
Код:
{
CMD:anunciar(playerid, params[])
{
new anuncio[128], formato[128];
if(sscanf(params, "s[128]", anuncio)) return SendClientMessage(playerid, vermelho, "Uso corrreto: /anunciar [TEXTO]");
format(formato, sizeof(formato), "Anuncio: %s", anuncio)
SendClientMessageToAll(azul, formato);
return 1;
}
return 0;
}