Dynamic dialog items
#1

Hi! Can you help with problem? I use YSI libraries.
I need to get dialog items from DB and show them in listbox. But it don't show more than 128 chars. How can I solve this?
My code:

pawn code:
Код:
... /* sql query */
new parttypesList[1024];
for (new i=0; i < cache_get_row_count(); i++) {
    new item[64], parttype[60];
    cache_get_field_content(i, "name", parttype);
	    
    format(item, sizeof(item), "%s\n", parttype);
    strcat(parttypesList, item);
}
	
Text_ListBox(playerid, using inline OnPartTypesDialog, $DIALOG_PARTTYPES_CAPTION, $DIALOG_LIST, $DIALOGS_OK, $DIALOGS_CANCEL, parttypesList);
...
lang.ru file:
Код:
...
DIALOG_LIST = %s
...
Reply


Messages In This Thread
Dynamic dialog items - by terrance - 30.10.2014, 16:56
Re: Dynamic dialog items - by terrance - 31.10.2014, 05:52
Re: Dynamic dialog items - by MasonSFW - 31.10.2014, 06:09
Re: Dynamic dialog items - by terrance - 31.10.2014, 16:58
Re: Dynamic dialog items - by terrance - 02.11.2014, 08:10

Forum Jump:


Users browsing this thread: 1 Guest(s)