21.12.2013, 17:17
Hey guys,
I am trying to make a CDL job but I dont now how to get it to see if the trailer id is correct.
Here is my code:
It keeps missing everything except
Please could you help me.
Thank you
I am trying to make a CDL job but I dont now how to get it to see if the trailer id is correct.
Here is my code:
Код:
CMD:loadtrailer(playerid, params[])
{
new vehicleid;
if(IsPlayerInRangeOfPoint(playerid, 10, -168.2511, -286.3422, 2.3614))
{
if(GetVehicleTrailer(GetVehicleModel(playerid)) == 584)
{
ShowPlayerDialog(playerid, DIALOG_FUEL_TRAILER, DIALOG_STYLE_INPUT, "Fuel Stations", "Broadway /n", "Deliver", "Cancel");
}
else return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer attached!");
}
else return SendClientMessage(playerid, -1, "You are not at the loading point.");
return 1;
}
Код:
SendClientMessage(playerid, -1, "You are not at the loading point.");
Thank you


