19.10.2016, 20:42
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.
GateObjects.
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");
}
Код:
enum gObjects
{
gModel,
gName[35],
}
new GateObjects[][gObjects] = {
{975, "Default Security Gate (On Wheels)"},
{971, "Airport Big Gate" },
{976, "Normal Gate " }
};
