temp variable, not 0 even if defined
#5

Quote:
Originally Posted by DarrenReeder
Посмотреть сообщение
pawn Код:
CMD:loadtruck(playerid, params[]) {
    if(!pInfo[playerid][pJob] == 1) return SendClientMessage(playerid, COLOR_WHITE, "You already have an existing checkpoint or trucking route.");
    if(!IsVehicleTruck(GetPlayerVehicleID(playerid))) return SendClientMessage(playerid, COLOR_WHITE, "To load the truck, go to the loading garage in Ocean Docks, then /loadtruck.");
    if(!IsPlayerInRangeOfPoint(playerid, 5, 2197.8425,-2662.9883,13.5469))  eturn SendClientMessage(playerid, COLOR_WHITE, "You are not in an Ocean Dock truck.");
// Checks if you are close enough to the loading point.
    if(!pTruckLoaded[playerid] == 0 && pCheckpoint[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "You are not a trucker.");
    CountDownCheck10(playerid); // calls the script to start the timer to load the truck
    return 1;
}
thats neater.

now what problem are you having?
This:


and


I have no checkpoints or active trucking routes, but still it rejects me from loading the truck.
Reply


Messages In This Thread
temp variable, not 0 even if defined - by Why - 21.07.2012, 23:11
Re: temp variable, not 0 even if defined - by Vince - 21.07.2012, 23:16
Re: temp variable, not 0 even if defined - by Why - 21.07.2012, 23:44
Re: temp variable, not 0 even if defined - by DarrenReeder - 21.07.2012, 23:47
Re: temp variable, not 0 even if defined - by Why - 21.07.2012, 23:48
Re: temp variable, not 0 even if defined - by DarrenReeder - 21.07.2012, 23:49
Re: temp variable, not 0 even if defined - by Why - 22.07.2012, 00:10

Forum Jump:


Users browsing this thread: 2 Guest(s)