Quote:
Originally Posted by Dragonsaurus
Check for vehicle model not vehicle ID:
pawn Код:
CMD:tduty(playerid, params[])//Trucker-duty dialog { new vehicleid = GetVehicleModelID(GetPlayerVehicleID(playerid)); if(vehicleid == 403 && IsTrailerAttachedToVehicle(vehicleid)) { ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Choose a route.", "Blueberry Packaging.\nMainstreet Ammunation.\nFlint Food Factory.\nOff-duty (Removes the CP)", "Confirm", "Close list"); } else return SendClientMessage(playerid, 0xE64D51FF, "[*]Message: You need to be in a truck with a trailer to use this command!"); return 1; }
|
Compiled that and received this:
Код:
C:\Users\Lee\Desktop\SAMP coding\gamemodes\truckerjob.pwn(387) : error 017: undefined symbol "GetVehicleModelID"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.