02.08.2017, 03:13
Quote:
It works fine without the string specifier. It only fucks up when I use it.
The %i or %d specifier (after the modelid) is fine too, but that's not what I need. |
Quote:
I've a problem here.
When I use DIALOG_STYLE_PREVMODEL_LIST, textdraw's model id doesn't show correctly. For instance, if i use Cigarettes's id (19897), the dialog truncates the last letter and shows an object with id: 1989 Same Objects in both dialog: DIALOG_STYLE_PREVMODEL_LIST Code:
COMMAND:testanim(playerid, params[]) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PREVMODEL_LIST, "Selection", "2039\tItem1\n19565\tItem2\n19897\tItem3\n19998\tItem4", "OK", " "); return 1; } DIALOG_STYLE_PREVMODEL Code:
COMMAND:testanim2(playerid, params[]) { new models[] = {2039, 19565, 19897, 19998}; new labels[][] = {"Item1", "Item2", "Item3", "Item4"}; ShowPlayerPreviewModelDialog(playerid, 0, DIALOG_STYLE_PREVMODEL, "Selection", models, labels, "Select", "Cancel"); return 1; } EDIT: FIX: IN: stock Dialog_ShowToPlayer(playerid, dialogid, style, caption[], info[], button1[], button2[]) Search: for static str_model[5]; Replace with: static str_model[6]; |