SA-MP Forums Archive
Dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog (/showthread.php?tid=460282)



Dialog - erikhenri - 27.08.2013

Okay..the problem is that dialog is not showing format correctly. It shows vehicleid but not gun ids.
Код:
			if(listitem == 0)
			{
				new string[512];
				new vehicleid;
				new test[512];
				vehicleid = GetPlayerVehicleID(playerid);
 				format(string, sizeof(string), " %d - %d\n %d - %s",vehicleid,Autos[vehicleid][vGun1],Autos[vehicleid][vKanep],GunNames[Autos[vehicleid][vGun1]]);
 				ShowPlayerDialog(playerid, DIALOG_AUTOV6TA, DIALOG_STYLE_LIST,"{FF0000}Name - Guns -  Bullets", string, "Vali", "Tagasi");
 				format(test, sizeof(test), " %d  %s",vehicleid,GunNames[Autos[vehicleid][vGun1]]);
				SendClientMessage(playerid, -1, test);
			}



Re: Dialog - erikhenri - 28.08.2013

bump