Quote:
Originally Posted by Gammix
Edit the include with this piece of code at the end:
pawn Код:
stock Dialog_GetModel(playerid, listitem) { if (playerid < 0 || playerid >= MAX_PLAYERS) { return false; }
if (pDialogStyle[playerid] == -1) { return false; }
new index;
switch (pDialogStyle[playerid]) { case DIALOG_STYLE_PREVMODEL, DIALOG_STYLE_PREVMODEL_LIST: { if (listitem >= pDialogTotalListitems[playerid]) { return false; }
index = listitem - (floatround(Float:(listitem - (6 * 4)), floatround_floor) * (6 * 4)); if (index >= (6 * 4)) { return false; }
return Dialog_GetModel(playerid, listitem); } }
return true; }
|
Function does not work, does not return the model ID.
Returned number: 0