[HELP] error 001: expected token: ")", but found ";"
#1

Here are the codes :

|| ||

PHP код:
CMD:lvair(playeridparams[])
{
    new 
id;
    new 
Interior GetPlayerInterior(id);
    if(
GetPlayerVehicleSeat(playerid) == 1)
    (
        
RemovePlayerFromVehicle(playerid);
    }
    if(
IsPlayerInAnyVehicle(playerid))
    {
        
SetVehiclePos(GetPlayerVehicleID(playerid), 1509.1740,1811.2737,10.3846);
        
LinkVehicleToInterior(GetPlayerVehicleID(playerid),Interior);
    }
    else 
SetPlayerPos(playerid1537.9845,1839.4662,10.9263);
    return 
1;

And the following Errors :
Код:
E:\PawNo\Maps\more maps\teles.pwn(51 -- 52) : error 001: expected token: ")", but found ";"
E:\PawNo\Maps\more maps\teles.pwn(49) : error 010: invalid function or declaration
E:\PawNo\Maps\more maps\teles.pwn(49 -- 59) : error 010: invalid function or declaration
E:\PawNo\Maps\more maps\teles.pwn(49 -- 59) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Line 51: This is not a curly brace. You need ' { ' and you use ' ( '. See the difference?

pawn Код:
CMD:lvair(playerid, params[])
{
    new id;
    new Interior = GetPlayerInterior(id);
    if(GetPlayerVehicleSeat(playerid) == 1)
    {
        RemovePlayerFromVehicle(playerid);
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetPlayerVehicleID(playerid), 1509.1740,1811.2737,10.3846);
        LinkVehicleToInterior(GetPlayerVehicleID(playerid),Interior);
    }
    else SetPlayerPos(playerid, 1537.9845,1839.4662,10.9263);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)