[AJUDA]Erros
#1

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

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

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' (:
Reply
#4

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 ...
Reply
#5

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. (:
Reply
#6

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

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.
Reply
#8

Essa й outra linha, mande ela '-'
Reply
#9

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"
Reply
#10

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,
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)