[Ajuda] Problema com comando! Erros: expected token; undefined symbol...
#1

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;
    }
Reply
#2

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;
    } 
Reply
#3

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
Reply
#4

Код:
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
Reply
#5

26 Errors.
Reply
#6

Man quer uma dica ? porque nao faz em zcmd ?
Reply
#7

eu nao sei uzar o zcmd
Reply
#8

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;

Reply
#9

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;
    }
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)