Menu crashing server?
#1

Well, for some reason now my menu crashes the server, it never used to before.


Global...
Код:
new Menu:CarColorMenu;
OnGameModeInit()...
Код:
CarColorMenu = CreateMenu("Car Color", 1, 200.0, 150.0, 130.0, 0.0);
AddMenuItem(CarColorMenu, 0, "Black");
AddMenuItem(CarColorMenu, 0, "White");
AddMenuItem(CarColorMenu, 0, "Blue");
AddMenuItem(CarColorMenu, 0, "Red");
AddMenuItem(CarColorMenu, 0, "Green");
AddMenuItem(CarColorMenu, 0, "Pink");
AddMenuItem(CarColorMenu, 0, "Yellow");
in my dcmd
Код:
if (GetPlayerVehicleID(playerid) == Player[playerid][cID])
	      {
	        TogglePlayerControllable(playerid, 0);
	      	ShowMenuForPlayer(CarColorMenu, playerid);
	      	return 1;
	      }
^ calls correctly, tested

OnExitedMenu
Код:
public OnPlayerExitedMenu(playerid)
{
	TogglePlayerControllable(playerid, 1);
	return 1;
}
It crashes the SERVER when i call it.. Why?
Reply


Messages In This Thread
Menu crashing server? - by efeX - 10.06.2009, 04:28
Re: Menu crashing server? - by Abernethy - 10.06.2009, 06:48
Re: Menu crashing server? - by efeX - 10.06.2009, 08:33
Re: Menu crashing server? - by Joe Staff - 10.06.2009, 08:36
Re: Menu crashing server? - by efeX - 10.06.2009, 08:46
Re: Menu crashing server? - by Andom - 10.06.2009, 12:55

Forum Jump:


Users browsing this thread: 1 Guest(s)