27.03.2009, 20:45
And the crash happens exactly when you respawn or when you select an item on the menu?
Edit:
Ok, the problem is that you're creating the menu once in OnGameModeInit and when the player selects case 3 which is to exit the menu, you fully destroy the menu without creating it again. Therefore, you try to display a menu that does not exist when the player respawns.
Change all your DestoryMenu to HideMenuForPlayer. As in change:
To:
Edit:
Ok, the problem is that you're creating the menu once in OnGameModeInit and when the player selects case 3 which is to exit the menu, you fully destroy the menu without creating it again. Therefore, you try to display a menu that does not exist when the player respawns.
Change all your DestoryMenu to HideMenuForPlayer. As in change:
pawn Код:
DestroyMenu(Airport);
pawn Код:
HideMenuForPlayer(Airport, playerid);

