What am i doing wrong?
#8

Still having some minor difficultys with this command.
Код:
C:\Program Files (x86)\Rockstar Games\samp\pawno\include\PPC_PlayerCommands.inc(6) : error 036: empty statement
C:\Program Files (x86)\Rockstar Games\samp\pawno\include\PPC_PlayerCommands.inc(16) : error 029: invalid expression, assumed zero
pawn Код:
CMD:boot( playerid, params[] )
{
    new bool:TrunkOpen[MAX_PLAYERS];
    if( !IsPlayerInAnyVehicle( playerid ) ) return SendClientMessage( playerid, COLOR_RED, "Error: You need to be in a vehicle." );
    {
        if(!TrunkOpen[playerid] == true);//this line is 6
        {
            TrunkOpen[playerid] = false;
            new pVeh;
            new engine,lights,alarm,doors,bonnet,boot,objective;
            pVeh = GetPlayerVehicleID( playerid );
            GetVehicleParamsEx(pVeh, engine, lights, alarm, doors, bonnet, boot, objective);
            SetVehicleParamsEx(pVeh, engine, lights, alarm, doors, bonnet, 0, objective);
            SendClientMessage(playerid, COLOR_GREY, "Trunk Closed");
        }
        else//line 16
        {
            TrunkOpen[playerid] = true;
            new pVeh;
            new engine,lights,alarm,doors,bonnet,boot,objective;
            pVeh = GetPlayerVehicleID( playerid );
            GetVehicleParamsEx(pVeh, engine, lights, alarm, doors, bonnet, boot, objective);
            SetVehicleParamsEx(pVeh, engine, lights, alarm, doors, bonnet, 1, objective);
            SendClientMessage(playerid, COLOR_GREY, "Trunk Open");
        }
    }
    return 1;
}
I have searched around for fixes with no sucess, anyone know what would be wrong now?
Reply


Messages In This Thread
What am i doing wrong? - by nickdodd25 - 12.04.2012, 02:02
Re: What am i doing wrong? - by Kitten - 12.04.2012, 02:10
Re: What am i doing wrong? - by nickdodd25 - 12.04.2012, 02:26
Re: What am i doing wrong? - by Kitten - 12.04.2012, 02:51
Re: What am i doing wrong? - by nickdodd25 - 12.04.2012, 04:17
Re: What am i doing wrong? - by nickdodd25 - 13.04.2012, 05:31
Re: What am i doing wrong? - by RollTi - 13.04.2012, 05:34
Re: What am i doing wrong? - by nickdodd25 - 14.04.2012, 01:36
Re: What am i doing wrong? - by [LoF]Zak - 14.04.2012, 01:41
Re: What am i doing wrong? - by Neo Karls - 14.04.2012, 01:53
Re: What am i doing wrong? - by nickdodd25 - 14.04.2012, 02:09

Forum Jump:


Users browsing this thread: 1 Guest(s)