Dialog Not showing full list
#1

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 " }
};
Reply
#2

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


Forum Jump:


Users browsing this thread: 3 Guest(s)