[Big Problem] OnPlayerEnterVehicle [Help]
#4

This happend when i add twice this:

First #1:
pawn Код:
if(ProduCar(vehicleid))
        {
            if(PlayerInfo[playerid][pJob] != JOB_PRODUKTE && PlayerInfo[playerid][pVIPJob] != JOB_PRODUKTE)
            {
                new Float:slx, Float:sly, Float:slz;
                GetPlayerPos(playerid, slx, sly, slz);
                SetPlayerPos(playerid, slx, sly, slz+1.3);
                PlayerPlaySound(playerid, 1130, slx, sly, slz+1.3);
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_GRAD2, "[{FFD200}INFO{FAFAFA}]: Ti nisi Dostavjac Produkte!");
            }
        }
Second #2:
pawn Код:
else if(MechCar(vehicleid))
        {
            if(PlayerInfo[playerid][pJob] != JOB_MECHANIC && PlayerInfo[playerid][pVIPJob] != JOB_MECHANIC)
            {
                new Float:slx, Float:sly, Float:slz;
                GetPlayerPos(playerid, slx, sly, slz);
                SetPlayerPos(playerid, slx, sly, slz+1.3);
                PlayerPlaySound(playerid, 1130, slx, sly, slz+1.3);
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid, COLOR_GRAD2, "[{FFD200}INFO{FAFAFA}]: Ti nisi Mehanic!");
            }
        }
The crashdetect gives me always that error if there is only the first one the crash is gone but i need to add for all vehicles whih are only used for the Jobs.
Reply


Messages In This Thread
[Big Problem] OnPlayerEnterVehicle [Help] - by GBLTeam - 09.02.2014, 22:26
Re: [Big Problem] OnPlayerEnterVehicle [Help] - by Mahde - 09.02.2014, 22:31
Re: [Big Problem] OnPlayerEnterVehicle [Help] - by GBLTeam - 09.02.2014, 22:38
Re: [Big Problem] OnPlayerEnterVehicle [Help] - by GBLTeam - 09.02.2014, 23:19
Re: [Big Problem] OnPlayerEnterVehicle [Help] - by cessil - 09.02.2014, 23:23
Re: [Big Problem] OnPlayerEnterVehicle [Help] - by GBLTeam - 09.02.2014, 23:28
Re: [Big Problem] OnPlayerEnterVehicle [Help] - by Mahde - 10.02.2014, 09:15
Re: [Big Problem] OnPlayerEnterVehicle [Help] - by Kirollos - 10.02.2014, 16:32
Re: [Big Problem] OnPlayerEnterVehicle [Help] - by GBLTeam - 11.02.2014, 12:54
Re: [Big Problem] OnPlayerEnterVehicle [Help] - by Kirollos - 11.02.2014, 14:56

Forum Jump:


Users browsing this thread: 2 Guest(s)