SA-MP Forums Archive
[AJUDA]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]Erros (/showthread.php?tid=284819)



[AJUDA]Erros - [GuN]Erick[M] - 20.09.2011

Aki tб dando um erro q tб me dexando LOKO.Alguem me ajuda pf?

Erros:
pawn Код:
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(218) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(218) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(218) : warning 215: expression has no effect
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(218) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(218) : fatal error 107: too many error messages on one line
Linha:
pawn Код:
if(strcmp,cmd,"/parkour",true) == 0);{
Cуdigo Inteiro:
pawn Код:
if(strcmp,cmd,"/parkour",true) == 0);{
          SendClientMessage(playerid,COLOR_BLUE,"Bem vindo ao Parkour by [FFC]Gordon",true == 0);
          SetPlayerPos(playerid,1430.7618408203,-1192.1994628906,199.17164611816,true == 0);
return 1;
}
AJUDA AWEW PF PLZ


Re: [AJUDA]Erros - [O.z]Caroline - 20.09.2011

pawn Код:
if(strcmp(cmdtext,"/parkour",true) == 0)
    {
        SendClientMessage(playerid,-1,"Bem vindo ao Parkour by [FFC]Gordon");
        SetPlayerPos(playerid,1430.7618408203,-1192.1994628906,199.17164611816);
        return 1;
    }



Re: [AJUDA]Erros - WLSF - 20.09.2011

pawn Код:
if(strcmp,cmd,"/parkour",true) == 0){
          SendClientMessage(playerid,COLOR_BLUE,"Bem vindo ao Parkour by [FFC]Gordon");
          SetPlayerPos(playerid,1430.7618408203,-1192.1994628906,199.17164611816);
return 1;
}
Nгo pode usar ponto e virgula seguido de 'if' (:


Re: [AJUDA]Erros - [O.z]Caroline - 20.09.2011

Quote:
Originally Posted by Willian_Luigi
Посмотреть сообщение
pawn Код:
if(strcmp,cmd,"/parkour",true) == 0){
          SendClientMessage(playerid,COLOR_BLUE,"Bem vindo ao Parkour by [FFC]Gordon",true == 0);
          SetPlayerPos(playerid,1430.7618408203,-1192.1994628906,199.17164611816,true == 0);
return 1;
}
Nгo pode usar ponto e virgula seguido de 'if' (:
algo estб errado ai ...


Re: [AJUDA]Erros - WLSF - 20.09.2011

Quote:
Originally Posted by [O.z]Caroline
Посмотреть сообщение
algo estб errado ai ...
Nгo tinha visto, obrigado corrigido. (: e desculpa por postar, eu acho que saiu os dois ao mesmo tempo. (:


Re: [AJUDA]Erros - [GuN]Erick[M] - 20.09.2011

Deu 4 erros aki:

pawn Код:
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(169) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(169) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(169) : warning 215: expression has no effect
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(169) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(169) : fatal error 107: too many error messages on one line

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


4 Errors.



Re: [AJUDA]Erros - [O.z]Caroline - 20.09.2011

Quote:
Originally Posted by [GuN]Erick[M]
Посмотреть сообщение
Deu 4 erros aki:

pawn Код:
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(169) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(169) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(169) : warning 215: expression has no effect
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(169) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Cicero\Desktop\Test\gamemodes\lvdm.pwn(169) : fatal error 107: too many error messages on one line

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


4 Errors.
amigo teste a minha que estб funcionando perfeitamente.


Re: [AJUDA]Erros - WLSF - 20.09.2011

Essa й outra linha, mande ela '-'


Re: [AJUDA]Erros - Rafael_. - 20.09.2011

cara use um FS para fazer comandos ( isso sу й uma dica ).

tipo o comando que tu queria no FS ficaria assim

PHP код:
#include <a_samp>
#pragma tabsize 0 //isso й pra vocк nao ter que ta arrumando os warnings loose indentation
#define COLOR_BLUE  0x33CCFFAA //pra definir sua cor no caso COLOR_BLUE
public OnPlayerCommandText(playerid ,cmdtext[])
{
    if(
strcmp("/parkour",cmdtext true)==0)// mudei para "cmdtext" para definir seu comando.
{
    
SendClientMessage(playerid,COLOR_BLUE,"Bem vindo ao Parkour by [FFC]Gordon");
    
SetPlayerPos(playerid,1430.7618408203,-1192.1994628906,199.17164611816);
    return 
1;
}
return 
0;

ta ae willian e carol se voces deixarem sу "cmd" vai da erro, tem que botar "cmdtext"


Re: [AJUDA]Erros - WLSF - 20.09.2011

Quote:
Originally Posted by Rafael_.
Посмотреть сообщение
cara use um FS para fazer comandos ( isso sу й uma dica ).

tipo o comando que tu queria no FS ficaria assim

PHP код:
#include <a_samp>
#pragma tabsize 0 //isso й pra vocк nao ter que ta arrumando os warnings loose indentation
#define COLOR_BLUE  0x33CCFFAA //pra definir sua cor no caso COLOR_BLUE
public OnPlayerCommandText(playerid ,cmdtext[])
{
    if(
strcmp("/parkour",cmdtext true)==0)// mudei para "cmdtext" para definir seu comando.
{
    
SendClientMessage(playerid,COLOR_BLUE,"Bem vindo ao Parkour by [FFC]Gordon");
    
SetPlayerPos(playerid,1430.7618408203,-1192.1994628906,199.17164611816);
    return 
1;
}
return 
0;

ta ae willian e carol se voces deixarem sу "cmd" vai da erro, tem que botar "cmdtext"
Ah vб '-' meu caro, cк vai separar um FS para fazer comando pra que ? sу pra complicar mais a vida do novato. Faзa dentro do prуprio GM simples. Muito melhor,