SA-MP Forums Archive
Dialog Not showing full list - 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 Not showing full list (/showthread.php?tid=619597)



Dialog Not showing full list - ThatFag - 19.10.2016

hey , i was creating an gate system but the problem is that dialog shows only 1 name when there are 2/3
here are codes.

Код:
if(!strcmp(tmp, "create", true, 6))
	{
		new string[300];
		format(string,sizeof(string),"%s %d\t\t%s\n",string,GateObjects[playerid][gModel],GateObjects[playerid][gName]);
		ShowPlayerDialog(playerid,1333,DIALOG_STYLE_LIST,"Testing Gates",string,"Select","Cancel");

	}
GateObjects.

Код:
enum gObjects
{
	gModel,
	gName[35],
}
new GateObjects[][gObjects] = {
	{975, "Default Security Gate (On Wheels)"},
	{971, "Airport Big Gate" },
	{976, "Normal Gate " }
};



Re: Dialog Not showing full list - DTV - 19.10.2016

I'm pretty sure you have to loop through each name to have them all show up.