SA-MP Forums Archive
Error - 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: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Error (/showthread.php?tid=539860)



Error - Ghost112397 - 30.09.2014

Hola, їme dicen por que me sale esto?
Quote:

C:\DOCUME~1\ADMINI~1\ESCRIT~1\Gamemode\GAMEMO~1\Ga memode.pwn(714) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(EsAutoLSPD(GetPlayerVehicleID(playerid))
    {
        if(Informacion[playerid][pFaccion] == 1)
        {
            return 1;
        }
        else
        {
            RemovePlayerFromVehicle(playerid);
            new Float:slx, Float:sly, Float:slz;
            GetPlayerPos(playerid, slx, sly, slz);
            SetPlayerPos(playerid, slx, sly, slz+1.0);
            SendClientMessage(playerid, -1, "No eres de esta facciуn!!");
            return 1;
        }
    }
    return 1;
}



Respuesta: Error - aoEXE - 30.09.2014

te falto cerrar un parйntesis

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(EsAutoLSPD(GetPlayerVehicleID(playerid))) //<- acб ya lo puse
    {
        if(Informacion[playerid][pFaccion] == 1)
        {
            return 1;
        }
        else
        {
            RemovePlayerFromVehicle(playerid);
            new Float:slx, Float:sly, Float:slz;
            GetPlayerPos(playerid, slx, sly, slz);
            SetPlayerPos(playerid, slx, sly, slz+1.0);
            SendClientMessage(playerid, -1, "No eres de esta facciуn!!");
            return 1;
        }
    }
    return 1;
}