05.02.2017, 22:35
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
DIALOG_STYLE_PREVMODEL
Thanks in advanced.
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];
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
Код:
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
Код:
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];