[AJUDA] Criando Portхes
#10

Pois bem coloquei no meu pawno ficou assim:

Код:
new portao; //CRIE UM NOME PARA UM PORTAO -- COLOQUE ISTO NO TOPO DO GM

public OnGameModeInit()
{
    portao = CreateDynamicObject(987, 1545.29, -1621.96, 12.00,   0.00, 0.00, 269.94);
    //DEFINA QUE O PORTAO SERБ IGUAL A ESTE PORTAO CRIADO
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmd,"/aportao",true) == 0)// QUANDO O PLAYER DIGITAR ISTO IRБ ACONTECER ISSO ABAIXO:
    {
        MoveDynamicObject(portao, 987, 1545.29, -1621.96, 6.04,   0.00, 0.00, 269.94);
        //ESTA LINHA IRБ ABRIR O PORTAO
        return 1;
    }
    if(strcmp(cmd,"/fportao",true) == 0)
    {
        MoveDynamicObject(portao, 987, 1545.29, -1621.96, 12.00,   0.00, 0.00, 269.94);
        // E ESTA IRБ FECHAR
        return 1;
    }
    return 1; // FECHA A PUBLIC
}
Mais dб o seguinte error:

Код:
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(3994) : warning 217: loose indentation
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(3996) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(3997) : error 001: expected token: ";", but found "{"
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4002) : warning 225: unreachable code
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4002) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4002) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4004) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4006) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4006) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4006) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4010) : error 017: undefined symbol "cmd"
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4012) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4012) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4012) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4021) : warning 225: unreachable code
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4825) : warning 217: loose indentation
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4826) : warning 217: loose indentation
C:\Documents and Settings\Fernando Carlos\Desktop\vida nova v3\gamemodes\BWG.pwn(4955) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply


Messages In This Thread
[AJUDA] Criando Portхes - by Kincy - 08.05.2011, 11:22
Re: [AJUDA] Criando Portхes - by diretor7 - 08.05.2011, 11:45
Respuesta: [AJUDA] Criando Portхes - by Kincy - 08.05.2011, 12:28
Re: [AJUDA] Criando Portхes - by noobre - 08.05.2011, 12:43
Re: [AJUDA] Criando Portхes - by Shadoww5 - 08.05.2011, 12:46
Re: [AJUDA] Criando Portхes - by [FeK]Netizen - 08.05.2011, 13:10
Respuesta: [AJUDA] Criando Portхes - by Kincy - 08.05.2011, 13:22
Re: [AJUDA] Criando Portхes - by Transferencia - 08.05.2011, 13:28
Re: [AJUDA] Criando Portхes - by Shadoww5 - 08.05.2011, 13:35
Respuesta: [AJUDA] Criando Portхes - by Kincy - 08.05.2011, 13:38

Forum Jump:


Users browsing this thread: 5 Guest(s)