Hi all! i updated my gm to the eSelection version that TommyB123 (https://github.com/TommyB123/eSelection)?released and everything is fine, except for these 2 errors that it tells me that the library has?
(they were already there before i changed the code in my gm). does anyone know what i can do? the lines of the errors are these:
i have all the includes in their latest version, help please :C
PHP Code:
eSelection.inc(124) : error 035: argument type mismatch (argument 3)
eSelection.inc(205) : error 035: argument type mismatch (argument 3)
(they were already there before i changed the code in my gm). does anyone know what i can do? the lines of the errors are these:
PHP Code:
static stock SetModelSelectionModelBox(playerid, count, const model[g_eMenuModelData])
{
PlayerTextDrawSetPreviewModel(playerid, g_ePlayerMenuData[playerid][g_eMenuItems][count], model[g_eMenuModel]);
if(model[g_eItemUseRotation])
{
PlayerTextDrawSetPreviewRot(playerid, g_ePlayerMenuData[playerid][g_eMenuItems][count], model[g_eItemRotX], model[g_eItemRotY], model[g_eItemRotZ], model[g_eItemZoom]);
}
else
{
PlayerTextDrawSetPreviewRot(playerid, g_ePlayerMenuData[playerid][g_eMenuItems][count], 0.0, 0.0, 0.0);
}
PlayerTextDrawShow(playerid, g_ePlayerMenuData[playerid][g_eMenuItems][count]);
if(model[g_eMenuModelText][0])
{
PlayerTextDrawSetString(playerid, g_ePlayerMenuData[playerid][g_eMenuTextDisplay][count], model[g_eMenuModelText]); //line 205
PlayerTextDrawShow(playerid, g_ePlayerMenuData[playerid][g_eMenuTextDisplay][count]);
}
}
PHP Code:
static stock ShowModelSelectionMenuTextDraws(playerid, const header[])
{
DestroyModelSelectionPlayerTDs(playerid);
CreateModelSelectionPlayerTDs(playerid);
for(new Iter:i = list_iter(g_ePlayerMenuData[playerid][g_eMenuModels]), count, model[g_eMenuModelData]; iter_inside(i); iter_move_next(i))
{
if(count >= MAX_ITEM_PER_PAGE) break;
iter_get_arr(i, model);
SetModelSelectionModelBox(playerid, count, model);
count ;
}
//page TD
new page[8];
format(page, sizeof(page), "1/%d", (list_size(g_ePlayerMenuData[playerid][g_eMenuModels]) / MAX_ITEM_PER_PAGE) 1);
PlayerTextDrawSetString(playerid, g_ePlayerMenuData[playerid][g_eMenuPageText], page);
//header test
PlayerTextDrawSetString(playerid, g_ePlayerMenuData[playerid][g_eMenuHeaderText], header); //line 124
PlayerTextDrawShow(playerid, g_ePlayerMenuData[playerid][g_eMenuHeaderText]);
PlayerTextDrawShow(playerid, g_ePlayerMenuData[playerid][g_eMenuPageText]);
TextDrawShowForPlayer(playerid, g_eMenuRightArrow);
TextDrawShowForPlayer(playerid, g_eMenuLeftArrow);
TextDrawShowForPlayer(playerid, g_eMenuBackground);
TextDrawShowForPlayer(playerid, g_eMenuTopBanner);
TextDrawShowForPlayer(playerid, g_eMenuBottomBanner);
TextDrawShowForPlayer(playerid, g_eMenuCloseButton);
SelectTextDraw(playerid, -1);
}
i have all the includes in their latest version, help please :C