SA-MP Forums Archive
[Ajuda] Problema com comando! Erros: expected token; undefined symbol... - 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] Problema com comando! Erros: expected token; undefined symbol... (/showthread.php?tid=503100)



Problema com comando! Erros: expected token; undefined symbol... - Alisson Silva Alves - 27.03.2014

porque aparece isso ?

pawn Код:
C:\Users\Aliisson\Desktop\Projeto\gamemodes\GM.pwn(1291) : error 017: undefined symbol "cmd"
C:\Users\Aliisson\Desktop\Projeto\gamemodes\GM.pwn(1294) : error 017: undefined symbol "PlayerInfo"
C:\Users\Aliisson\Desktop\Projeto\gamemodes\GM.pwn(1294) : warning 215: expression has no effect
C:\Users\Aliisson\Desktop\Projeto\gamemodes\GM.pwn(1294) : error 001: expected token: ";", but found "]"
C:\Users\Aliisson\Desktop\Projeto\gamemodes\GM.pwn(1294) : error 029: invalid expression, assumed zero
C:\Users\Aliisson\Desktop\Projeto\gamemodes\GM.pwn(1294) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/de4", cmd, true) == 0)
    {
        ApplyAnimation(playerid,"FINALE","FIN_Land_Car",4.1,1,1,1,1,1,1);
        PlayerInfo[playerid][pAnime] = 1;
        return 1;
    }



Re: cmd - yNexus - 27.03.2014

PHP код:
    if(strcmp("/de4"cmdtexttrue4) == 0)
    {
        
ApplyAnimation(playerid,"FINALE","FIN_Land_Car",4.1,1,1,1,1,1,1);
        
PlayerInfo[playerid][pAnime] = 1;
        return 
1;
    } 



Re: Problema com comando! Erros: expected token; undefined symbol... - Alisson Silva Alves - 27.03.2014

pawn Код:
C:\Users\Aliisson\[GM]\gamemodes\BPG.pwn(7) : fatal error 100: cannot read from file: "savejonas"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
pq eu acredito que deve ser do modo que coloquei !

pawn Код:
new PlayerInfo[MAX_PLAYERS][nTN];
pawn Код:
forward IsAPoliciaMilitar(playerid);
ta assim o new ta primeiro
pq vem o enum nTN
dp vem o forward



Re: Problema com comando! Erros: expected token; undefined symbol... - XVenomX - 27.03.2014

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{//1
    if(strcmp("/de4", cmdtext, true) == 0)
    {//2
        ApplyAnimation(playerid,"FINALE","FIN_Land_Car",4.1,1,1,1,1,1,1);
        PlayerInfo[playerid][pAnime] = 1;
        return 1;
    }//2
}//1
Tenta ae


Re: Problema com comando! Erros: expected token; undefined symbol... - Alisson Silva Alves - 27.03.2014

26 Errors.


Re: Problema com comando! Erros: expected token; undefined symbol... - XVenomX - 27.03.2014

Man quer uma dica ? porque nao faz em zcmd ?


Re: Problema com comando! Erros: expected token; undefined symbol... - Alisson Silva Alves - 27.03.2014

eu nao sei uzar o zcmd


Re: Problema com comando! Erros: expected token; undefined symbol... - yNexus - 27.03.2014

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
   if(
strcmp("/de4"cmdtexttrue4) == 0)
    {
        
ApplyAnimation(playerid,"FINALE","FIN_Land_Car",4.1,1,1,1,1,1,1);
        return 
1;
    }
    return 
0;




Re: Problema com comando! Erros: expected token; undefined symbol... - Alisson Silva Alves - 27.03.2014

pawn Код:
C:\Users\Aliisson\Desktop\Projeto\gamemodes\GM.pwn(1293) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
Linha
pawn Код:
if(strcmp(cmdtext, "/animlist", true) == 0)
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
   if(strcmp("/de4", cmdtext, true, 4) == 0)
    {
        ApplyAnimation(playerid,"FINALE","FIN_Land_Car",4.1,1,1,1,1,1,1);
        return 1;
    }
    if(strcmp(cmdtext, "/animlist", true) == 0)
    {
        SendClientMessage(playerid, COR_VERMELHO, "{FFFFFF}|_B_N_P_|Animes Brasil Nacional Player|_B_N_P_|");
        SendClientMessage(playerid, COR_BRANCO,"Digite o Comando Desejado Para Mais Informaзхes!");
        SendClientMessage(playerid, COR_VERMELHO,"BNP > | /ligar /desligar /bebado /bomba /apontar /merda /de4 /wave");
        SendClientMessage(playerid, COR_VERMELHO,"BNP > | /deitar /abaixar /vomitar /comer /passaramao /fumarbaseado /mijar");
        SendClientMessage(playerid, COR_VERMELHO,"BNP > | /cobrar /overdose /fumar /fumar2 /gro /conversar /fodase /taichi /masturbar");
        SendClientMessage(playerid, COR_VERMELHO,"{54FF9F}=============================================================================");
        return true;
    }



Re: Problema com comando! Erros: expected token; undefined symbol... - XVenomX - 27.03.2014

Quote:
Originally Posted by Alisson Silva Alves
Посмотреть сообщение
eu nao sei uzar o zcmd
йu acho mais pratico e facil, tutorial se tiver interesse Aqui