Errors
#10

try
pawn Код:
else if(strcmp(x_v,"hood",true) == 0)
            {
                GetPlayerName(playerid,sendername,sizeof(sendername));
                new vehicleid = GetPlayerVehicleID(playerid);
                GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
                if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER);
                {
                    SendClientMessage(playerid,COLOR_GREY," You are not even inside a vehicle !");
                    return 1;
                }
                if(bonnet == 1)
                {
                    SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, false, boot, objective);//toggle bonnet false
                    format(string, sizeof(string), "* %s closes the vehicle hood.", sendername);
                    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                else
                {
                    SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, true, boot, objective);//toggle bonnet true
                    format(string, sizeof(string), "* %s opens the vehicle hood.", sendername);
                    ProxDetector(25.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                return 1;
            }
Reply


Messages In This Thread
Errors - by Chris_Morrison - 20.10.2011, 16:53
Re: Errors - by Stigg - 20.10.2011, 17:01
Re: Errors - by Chris_Morrison - 20.10.2011, 17:03
Re: Errors - by Stigg - 20.10.2011, 17:05
Re: Errors - by Chris_Morrison - 20.10.2011, 17:10
Re: Errors - by Stigg - 20.10.2011, 17:12
Re: Errors - by Chris_Morrison - 20.10.2011, 17:19
Re: Errors - by Stigg - 20.10.2011, 17:22
Re: Errors - by Chris_Morrison - 20.10.2011, 17:27
Re: Errors - by Mr_Scripter - 20.10.2011, 17:30

Forum Jump:


Users browsing this thread: 5 Guest(s)