23.03.2016, 07:44
(
Последний раз редактировалось K0P; 23.03.2016 в 08:38.
Причина: Name Edit
)
I made a dialog which will show the vehicle keys player has,but i don't know how can i get that which vehicle id the player has clicked.i mean how will i check the vehicle id that a list item is containing on the response of dialog id 559
Код:
Here is the gamemode on which im working: https://sampforum.blast.hk/showthread.php?tid=423627
Код:
if(dialogid == 558) { if(response) { new str[250], str2[250]; for(new i = 0; i < MAX_RP_VEHICLES; i++) { if(VehicleInfo[i][KeyHolder] == CharacterInfo[playerid][active_character[playerid]][cID]) { format(str2, sizeof(str2), "%s (%d)\n", VehicleInfo[i][vModel], VehicleInfo[i][vID]); strcat(str, str2); } } ShowPlayerDialog(playerid, 559, DIALOG_STYLE_LIST, ""COL_GREEN"JRP - Vehicle Keys", str, "Select", ""); } }