GetPlayerMenu() always returns last showed menu
#1

GetPlayerMenu(playerid) will return last menu id which was showed to player, if I use HideMenuForPlayer and later use GetPlayerMenu, it will show last showed menu, while it should return invalid menu.

It can be easly tested by showing some menu to player, hide it, and then use this, and you will see your last menu,


CMD:test(playerid,params[])
{
ShowMenuForPlayer(GetPlayerMenu(playerid),playerid );
return 1;
}
Reply


Messages In This Thread
GetPlayerMenu() always returns last showed menu - by ikey07 - 14.02.2014, 21:16

Forum Jump:


Users browsing this thread: 1 Guest(s)