SA-MP Forums Archive
[Ajuda] Ajuda Portao 4 Erros Na Mesma Linha - 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] Ajuda Portao 4 Erros Na Mesma Linha (/showthread.php?tid=414308)



Ajuda Portao 4 Erros Na Mesma Linha - Alisson Silva Alves - 08.02.2013

pawn Код:
C:\Users\Allisson\Desktop\Serve (Samp)\gamemodes\PortaoBaseGn.pwn(12) : error 001: expected token: ",", but found "."
C:\Users\Allisson\Desktop\Serve (Samp)\gamemodes\PortaoBaseGn.pwn(12) : error 029: invalid expression, assumed zero
C:\Users\Allisson\Desktop\Serve (Samp)\gamemodes\PortaoBaseGn.pwn(12) : warning 215: expression has no effect
C:\Users\Allisson\Desktop\Serve (Samp)\gamemodes\PortaoBaseGn.pwn(12) : error 001: expected token: ";", but found ")"
C:\Users\Allisson\Desktop\Serve (Samp)\gamemodes\PortaoBaseGn.pwn(12) : 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.


---


Eu fiz um FS Para abrir e fechar um portao da gn mais quando vo compilar da erro porque ?


pawn Код:
#include <a_samp>
#include <streamer>

new PortaoBaseExercito;

#if defined FILTERSCRIPT
#else
#endif

public OnGameModeInit()
{
PortaoBaseExercito = CreateObject(980, -1422, 494.7998046875, 4.8000001907349, 0.0000, 0.0000, 89.994506835938.0000);

return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/abrirgn", true) == 0)
    {
        MoveObject(PortaoBaseExercito,-1422, 505.7998046875, 4.8000001907349, 3.0);
        SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Portao Presos Gn Aberto Com Sucesso");
        return 1;
    }
    if(strcmp(cmdtext, "/fechargn", true) == 0)
    {
        MoveObject(PortaoBaseExercito,-1422, 494.7998046875, 4.800000190734, 3.0);
        SendClientMessage(playerid, 0x9E3EFFAA, "[INFO] Portao Presos Gn Fechado Com Sucesso.");
        return 1;
    }

    return 0;
}



Re: Ajuda Portao 4 Erros Na Mesma Linha - MatheusAlcapone - 08.02.2013

Qual a linha exata do erro?


Re: Ajuda Portao 4 Erros Na Mesma Linha - Alisson Silva Alves - 08.02.2013

pawn Код:
12

PortaoBaseExercito = CreateObject(980, -1422, 494.7998046875, 4.8000001907349, 0.0000, 0.0000, 89.994506835938.0000);



Re: Ajuda Portao 4 Erros Na Mesma Linha - ViniBorn - 08.02.2013

pawn Код:
PortaoBaseExercito = CreateObject(980, -1422.0000, 494.7998, 4.8000, 0.0000, 0.0000, 90.000);