GetPlayerMenu problem
#1

Hello there, im having the following trouble: GetPlayerMenu gets only the first one menu i used in game, and if im trying to use and exit other menu, GetPlayerMenu still says that i exited the first menu (Which i used before). Any ideas about what to do?

public OnPlayerExitedMenu(playerid)
{
new Menu:current = GetPlayerMenu(playerid);
if(current == vehd || col1 || col2)
{
DestroyVehicleEx(VehShow[playerid]);
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerSpectating(playerid, 0);
}
else if(current == clos || gang)
{
SetPlayerSkin(playerid, GetPVarInt(playerid, "s"));
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
}
return 1;
}
Reply
#2

Post the full code if possible.
Reply
#3

When im exiting menu by pressing F(Enter Car) button, the server still thinks that im using this menu, even when i allready used other menus after this. Maybe i should use HideMenuForPlayer with all manipulations with menu row selections and stuff?

SOLVED: im showing-hiding another empty menu for a player after he exited some menu, and server resets player internal menu variable.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)