Dynamic dialog items - 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: Dynamic dialog items (
/showthread.php?tid=544033)
Dynamic dialog items -
terrance - 30.10.2014
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
...
Re: Dynamic dialog items -
terrance - 31.10.2014
up ^
Re: Dynamic dialog items -
MasonSFW - 31.10.2014
change
to
Re: Dynamic dialog items -
terrance - 31.10.2014
No, it's not working.
I think it is depends on limit of strings in language file (128 chars). How to increase it?
Re: Dynamic dialog items -
terrance - 02.11.2014
up ^