kann mir einer sagen was ich da falsch gemacht habe
wenn ich den server starten will dann stürzt der immer ab aber im gamemode sacht er mir keinen fehler an
new Menu:Rathaus;
#define COLOR_ORANGE 0xFF9933AA // Adac
#define COLOR_GREEN 0x33AA33AA // Arzt
#define COLOR_YELLOW 0xFFFF00AA // Taxi und Bus
#define TEAM_adac 1
#define TEAM_taxibus 2
#define TEAM_arzt 3
#define SLOTS 4
public OnGameModeInit()
{
AddStaticPickup(1272,23,-1612.286376,1004.242980,7.187500); // Rathaus Eingang id 6;
SetMenuColumnHeader(Rathaus, 0, "Select a Destination");
AddMenuItem(Rathaus, 0, "Taxi");
AddMenuItem(Rathaus, 0, "Adac");
AddMenuItem(Rathaus, 0, "Arzt");
AddMenuItem(Rathaus, 0, "- Exit Menu -");
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:current;
current = GetPlayerMenu(playerid);
if(current == Rathaus)
{
TogglePlayerControllable(playerid, 1);
switch(row)
{
case 0:
{
SendClientMessage(playerid, COLOR_WHITE, "test1");
HideMenuForPlayer(Rathaus, playerid);
gTeam[playerid] = TEAM_taxibus;
SetPlayerColor(playerid, COLOR_YELLOW);
SetPlayerSkin(playerid, 107);
}
case 1:
{
SendClientMessage(playerid, COLOR_WHITE, "test2");
HideMenuForPlayer(Rathaus, playerid);
gTeam[playerid] = TEAM_adac;
SetPlayerColor(playerid, COLOR_YELLOW);
SetPlayerSkin(playerid, 107);
}
case 2:
{
SendClientMessage(playerid, COLOR_WHITE, "test3");
HideMenuForPlayer(Rathaus, playerid);
gTeam[playerid] = TEAM_arzt;
SetPlayerColor(playerid, COLOR_YELLOW);
SetPlayerSkin(playerid, 107);
}
case 3: // Exit Menu
{
HideMenuForPlayer(Rathaus, playerid);
}
}
}
return 1;
}