09.02.2014, 23:19
This happend when i add twice this:
First #1:
Second #2:
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.
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!");
}
}
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!");
}
}