mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Fix MPROP_SHOWPAGE
This commit is contained in:
parent
f1fc6912eb
commit
06498fc288
@ -1089,7 +1089,7 @@ static cell AMX_NATIVE_CALL menu_getprop(AMX *amx, cell *params)
|
||||
switch (params[arg_prop])
|
||||
{
|
||||
case MPROP_PAGE_CALLBACK: return pMenu->pageCallback;
|
||||
case MPROP_SHOWPAGE: return pMenu->showPageNumber;
|
||||
case MPROP_SHOWPAGE: return static_cast<cell>(pMenu->showPageNumber);
|
||||
case MPROP_SET_NUMBER_COLOR:
|
||||
{
|
||||
if (paramsNum < arg_bufferlen)
|
||||
@ -1101,7 +1101,7 @@ static cell AMX_NATIVE_CALL menu_getprop(AMX *amx, cell *params)
|
||||
set_amxstring(amx, params[arg_buffer], pMenu->m_ItemColor.chars(), params[arg_bufferlen]);
|
||||
break;
|
||||
}
|
||||
case MPROP_PERPAGE: return static_cast<cell>(pMenu->items_per_page);
|
||||
case MPROP_PERPAGE: return pMenu->items_per_page;
|
||||
case MPROP_BACKNAME:
|
||||
{
|
||||
if (paramsNum < arg_bufferlen)
|
||||
|
Loading…
Reference in New Issue
Block a user