[HELP] Menu's
#1

I have a huge problem with menu's, i have this:
pawn Код:
new Menu:CurrentMenu = GetPlayerMenu(playerid);
  if (CurrentMenu == pbm)
  switch(row)
  {
    case 0: //Grove Street
    {
    //VANBELANG
      PaintballPlayers ++;
        PlayerPaintballing2[playerid] = 1;
            new rand = random(sizeof(PaintballSpawns2));
            SetPlayerPos(playerid, PaintballSpawns2[rand][0], PaintballSpawns2[rand][1], PaintballSpawns2[rand][2]);
            TogglePlayerControllable(playerid, 0);
      SendClientMessage(playerid, 0xFFFFFFFF, "You joined the paintballmatch! to quit type /stoppb");
      HideMenuForPlayer(GetPlayerMenu(playerid), playerid);
      TogglePlayerControllable(playerid, true);
    }
    case 1: //Grove Street
    {
      HideMenuForPlayer(GetPlayerMenu(playerid), playerid);
      TogglePlayerControllable(playerid, true);
    }

  }
    if(CurrentMenu == TuningMenu) {
      switch(row){
        case 0: ShowMenuForPlayer(Paintjobs, playerid);
        case 1: ShowMenuForPlayer(Colors, playerid);
        case 2: ShowMenuForPlayer(Exhausts, playerid);
        case 3:ShowMenuForPlayer(Frontbumper, playerid);
        case 4:ShowMenuForPlayer(Rearbumper, playerid);
        case 5:ShowMenuForPlayer(Roof, playerid);
        case 6:ShowMenuForPlayer(Spoilers, playerid);
        case 7:ShowMenuForPlayer(Sideskirts, playerid);
            case 8:ShowMenuForPlayer(Bullbars, playerid);
        case 9:ShowMenuForPlayer(Wheels, playerid);
        case 10:ShowMenuForPlayer(Carstereo, playerid);
        case 11:ShowMenuForPlayer(TuningMenu1, playerid);
        }
    }
.
.
.
.
Now for all menu's i have the 1st and the 2nd option, give their rsults but they also always give the results of the pbm menu!
So they teleport me and all but i don't want that, how do i make it dissapear?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)