17.04.2016, 20:32
Quote:
That's the mistake, the function is supposed to get a vehicle ID and not a vehicle model ID.
PHP код:
pawn Код:
|
PHP код:
if(IsPlayerInRangeOfPoint(playerid,3,1481.9901,-1796.1001,17.0359)){
format(String,sizeof(String),"Slot 1: %s\n\
Slot 2: %s\n\
Slot 3: %s\n\
Slot 4: %s\n\
Slot 5: %s\n\
Slot 6: %s\n\
Slot 7: %s\n\
Slot 8: %s\n\
Slot 9: %s\n\
Slot 10: %s",GetVehicleName(DB[playerid][Vehicle1],1),
GetVehicleName(DB[playerid][Vehicle2]),
GetVehicleName(DB[playerid][Vehicle3]),
GetVehicleName(DB[playerid][Vehicle4]),
GetVehicleName(DB[playerid][Vehicle5]),
GetVehicleName(DB[playerid][Vehicle6]),
GetVehicleName(DB[playerid][Vehicle7]),
GetVehicleName(DB[playerid][Vehicle8]),
GetVehicleName(DB[playerid][Vehicle9]),
GetVehicleName(DB[playerid][Vehicle10]));
DLG(playerid,17,DIALOG_STYLE_LIST,"Pick a slot",String,"Pick","Cancel");