SA-MP Forums Archive
[Ajuda] Como Resolver Seguintes Erros - 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] Como Resolver Seguintes Erros (/showthread.php?tid=468368)



Como Resolver Seguintes Erros - Eryclys - 07.10.2013

4 Erros :/ Obs : Sou iniciante !
Quote:

(141) : error 029: invalid expression, assumed zero
(141) : error 004: function "OnPlayerCommandText" is not implemented
(141 -- 145) : error 035: argument type mismatch (argument 2)
(141 -- 145) : fatal error 107: too many error messages on one line
Linha141
Quote:

public OnPlayerCommandText(playerid, cmdtext ()
Linha 145

Pawn Code :
Quote:

if (strcmp(cmdtext, "/Cor", true) == 0)

.


Re: Como Resolver Seguintes Erros - Coe1 - 07.10.2013

~:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/cor", true))
    {
         // funcoes
    }
    return 0;
}



Re: Como Resolver Seguintes Erros - PT - 07.10.2013

https://sampforum.blast.hk/showthread.php?tid=468180

ajudara


Re: Como Resolver Seguintes Erros - ThuuGLif3 - 07.10.2013

Poste o Cуdigo mais Completo...



Re: Como Resolver Seguintes Erros - Eryclys - 07.10.2013

Agora sгo 6 Erros , AFF

Quote:

(143) : fatal error 107: too many error messages on one line
(143) : error 001: expected token: ";", but found ")"
(143) : error 029: invalid expression, assumed ze
(143) : error 017: undefined symbol "cmdtext"
(141) : error 004: function "OnPlayerCommandText" is not implemented
(141) : error 029: invalid expression, assumed zero

Essas Sгo as Linhas !

Linha 141:
Quote:

public OnPlayerCommandText(playerid, cmdtext [])

Linha 143:
Quote:

if(!strcmp(cmdtext, "/cor", true)) == 0 )

O cуdigo estб assim

Quote:
Код:
public OnPlayerCommandText(playerid, cmdtext [])
{
   if(!strcmp(cmdtext, "/cor", true)) == 0 )
   {
          ShowPlayerDialog(playerid,60,DIALOG_STYLE_INPUT,"Cores","Coloque o cуdigo da cor a baixo: ","Mudar","Sair");
   }
   return 0;
}



Re: Como Resolver Seguintes Erros - ThuuGLif3 - 07.10.2013

Tente...

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/cor", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid, 7954, DIALOG_STYLE_INPUT, "Cores","Coloque o cуdigo da cor a baixo: ","Mudar","Sair");
        return true;
    }
    return false;
}



Re: Como Resolver Seguintes Erros - PT - 07.10.2013

pawn Код:
public OnPlayerCommandText(playerid, cmdtext [])
{
    if(strcmp(cmdtext, "/cor", true) == 0)
    {
        ShowPlayerDialog(playerid,60,DIALOG_STYLE_INPUT,"Cores","Coloque o cуdigo da cor a baixo: ","Mudar","Sair");
        return 1;
    }
    return 0;
}