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