How can i get that?
#1

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", "");
		}
	}
Reply


Messages In This Thread
How can i get that? [+REP] - by K0P - 23.03.2016, 07:44
Re: How can i get that? - by Mencent - 23.03.2016, 08:24
Re: How can i get that? - by K0P - 23.03.2016, 08:35
Re: How can i get that? - by Mencent - 23.03.2016, 08:38
Re: How can i get that? - by K0P - 23.03.2016, 08:43
Re: How can i get that? - by Mencent - 23.03.2016, 08:48
Re: How can i get that? - by K0P - 23.03.2016, 09:16
Re: How can i get that? - by DRIFT_HUNTER - 23.03.2016, 09:21
Re: How can i get that? - by K0P - 23.03.2016, 09:21
Re: How can i get that? - by DRIFT_HUNTER - 23.03.2016, 09:27

Forum Jump:


Users browsing this thread: 1 Guest(s)