AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   (Help) item=MENU_EXIT (https://forums.alliedmods.net/showthread.php?t=241678)

Fuck For Fun 06-07-2014 13:44

(Help) item=MENU_EXIT
 
Fixed

fysiks 06-07-2014 13:57

Re: item=MENU_EXIT
 
I don't see any menu_display() commands that could possible cause this. Attach your whole .sma file.

devilicioux 06-09-2014 02:49

Re: item=MENU_EXIT
 
Quote:

Originally Posted by Fuck For Fun (Post 2148103)
fixed


Join Date: Nov 2013

And you still acting like a 5 year old kid by blanking out your posts.
For Jesus sake stop doing this.

Fuck For Fun 06-09-2014 03:39

Re: item=MENU_EXIT
 
Quote:

Originally Posted by devilicioux (Post 2148659)
Join Date: Nov 2013

And you still acting like a 5 year old kid by blanking out your posts.
For Jesus sake stop doing this.

What?

If you have any problem, my pm is open for you...

If you know why i get error so answer, stop posting like a 5 year old kid.

YamiKaitou 06-09-2014 03:41

Re: item=MENU_EXIT
 
Quote:

Originally Posted by Fuck For Fun (Post 2148679)
What?

https://forums.alliedmods.net/misc.php?do=showrules
Quote:

Do not blank out posts - if you solve your problem post the solution for others to find.

Fuck For Fun 06-09-2014 07:01

Re: item=MENU_EXIT
 
Quote:

Originally Posted by YamiKaitou (Post 2148680)

Kk, read ;)
Not fixed yet, still geting the error...

Backstabnoob 06-09-2014 07:56

Re: (Help) item=MENU_EXIT
 
Code:
static cell AMX_NATIVE_CALL menu_display(AMX *amx, cell *params) {     GETMENU(params[2]);     int player = params[1];     int page = params[3];     CPlayer* pPlayer = GET_PLAYER_POINTER_I(player);     /* If the stupid handler keeps drawing menus,      * We need to keep cancelling them.  But we put in a quick infinite loop      * counter to prevent this from going nuts.      */     int menu;     int loops = 0;     while ((menu = pPlayer->newmenu) >= 0)     {         if ((size_t)menu >= g_NewMenus.size() || !g_NewMenus[menu])         {             break;         }         Menu *pOther = g_NewMenus[menu];         pOther->Close(pPlayer->index);         /* Infinite loop counter */         if (++loops >= 10)         {             LogError(amx, AMX_ERR_NATIVE, "Plugin called menu_display when item=MENU_EXIT");             return 0;         }     }     int time = -1;     if (params[0] / sizeof(cell) >= 4)         time = params[4];     if (time < 0)         pPlayer->menuexpire = INFINITE;     else         pPlayer->menuexpire = gpGlobals->time + static_cast<float>(time);     return pMenu->Display(player, page); }

I'm not really sure what this means, but it seems like your other plugins are causing leaks because they're not destroying menus properly. Try to disable all of your plugins that add menus to the game, then try again.


All times are GMT -4. The time now is 09:44.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.