[Ajuda]Comando dando erro
#1

Serб q alguem podia me ajudar? й ki tem uns erros aki q me dexa doido

Erros:
pawn Код:
C:\Documents and Settings\Cicero\Desktop\TEST\gamemodes\FFCv1.pwn(1164) : warning 217: loose indentation
C:\Documents and Settings\Cicero\Desktop\TEST\gamemodes\FFCv1.pwn(1166) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\Cicero\Desktop\TEST\gamemodes\FFCv1.pwn(1166) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Cicero\Desktop\TEST\gamemodes\FFCv1.pwn(1166) : warning 215: expression has no effect
C:\Documents and Settings\Cicero\Desktop\TEST\gamemodes\FFCv1.pwn(1166) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Cicero\Desktop\TEST\gamemodes\FFCv1.pwn(1166) : 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.
Cуdigo Inteiro:
pawn Код:
if(strcmp,cmd,"/bilhetche",true) == 0)
    GivePlayerMoney(playerid,-1000);
    SendClientMessage(playerid,COLOR_BLUE,"Vocк comprou um Bilhetchк LOL",true);
    MoveObject(976,841.30114746094,-2061.31640625,14.016621589661,-1000.0,-1000.0,-1000.0);
return 1;
}
Reply
#2

pawn Код:
if(!strcmp(cmd,"/bilhetche",true))
{
    GivePlayerMoney(playerid,-1000);
    SendClientMessage(playerid,COLOR_BLUE,"Vocк comprou um Bilhetchк LOL");
    MoveObject(976,841.30114746094,-2061.31640625,14.016621589661,-1000.0,-1000.0,-1000.0);
    return 1;
}
Reply
#3

Como vocк fechou a panela sem ter a aberto?

Aonde a funзгo comeзa, Erick? Que decepзгo...

Vocк tem que abrir a chave para poder fecha-la:
Quote:

if (strcmp("/bilhetche", cmdtext, true, 10) == 0)
{
GivePlayerMoney(playerid,-1000);
SendClientMessage(playerid,COLOR_BLUE,"Vocк comprou um Bilhetchк LOL",true);
MoveObject(976,841.30114746094,-2061.31640625,14.016621589661,-1000.0,-1000.0,-1000.0);
return 1;
}

#Edit

Problem?
Reply
#4

Quote:
Originally Posted by [Magnus]
Посмотреть сообщение
Como vocк fechou a panela sem ter a aberto?

Aonde a funзгo comeзa, Erick? Que decepзгo...

Vocк tem que abrir a chave para poder fecha-la:
tem mais 2 erros no comando...
Reply
#5

Sу destacando: O cуdigo do MoveObject estб completamente bugado.

Vocк deve definir o objeto em uma variбvel, depois move-lo.
Exemplo:
pawn Код:
new Objeto;
public OnGameModeInit()
{
    Objeto = CreateObject(3599,-308.17419434,1573.83422852,80.30518341,0.00000000,0.00000000,44.00000000);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/moverobjeto", cmdtext, true, 12) == 0)
    {
        MoveObject(Objeto, -308.17419434,1573.83422852,70.30518341, 2.5);
        return 1;
    }
    return SendClientMessage(playerid, -1, "Comando Inexistente");
}
Reply
#6

Nego a parte do moveobject ta toda errada
Reply
#7

Valeu Mag +Repu

@luiz98
jб arrumei
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)