mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-14 07:48:03 +03:00
Update newmenus.cpp
This commit is contained in:
parent
11a3b6bd0e
commit
1724d4bdd3
@ -1122,14 +1122,14 @@ static cell AMX_NATIVE_CALL menu_getprop(AMX *amx, cell *params)
|
|||||||
}
|
}
|
||||||
case MPROP_EXITNAME:
|
case MPROP_EXITNAME:
|
||||||
{
|
{
|
||||||
if(pMenu->m_NeverExit == false && pMenu->m_ForceExit == false)
|
if (len < 4)
|
||||||
return 1;
|
{
|
||||||
else if(pMenu->m_NeverExit == false && pMenu->m_ForceExit == true)
|
LogError(amx, AMX_ERR_NATIVE, "Expected 4 parameters");
|
||||||
return 2;
|
return 0;
|
||||||
else if(pMenu->m_NeverExit == true && pMenu->m_ForceExit == false)
|
}
|
||||||
return -1;
|
|
||||||
|
|
||||||
return 0;
|
set_amxstring(amx, params[3], pMenu->m_OptNames[abs(MENU_EXIT)].chars(), params[4]);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
case MPROP_TITLE:
|
case MPROP_TITLE:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user