Help me is menu
#1

I already have:
pawn Код:
1)new Menu:nnnnnnnnnn;

2)AddMenuItem(nnnnnnnnnn, 0, "Tt");
AddMenuItem(nnnnnnnnnn, 0, "Ttt");
AddMenuItem(nnnnnnnnnn, 0, "Ttttt");


3)ShowMenuForPlayer(nnnnnnnnnn, playerid);
       
4)      public OnPlayerSelectedMenuRow(playerid, row)
{
        new Menu:current;
        current = GetPlayerMenu(playerid);
        if(current == nnnnnnnnnn)
  {
    switch(row)
    {
      case 0:{
        new vehicleid = GetPlayerVehicleID(playerid);
        new cartype = GetVehicleModel(vehicleid)
    if(cartype == 560){
        AddVehicleComponent(vehicleid,1139);
        }
      }
      case 1:{
        new vehicleid = GetPlayerVehicleID(playerid);
        new cartype = GetVehicleModel(vehicleid)
        if(cartype == 562){
        AddVehicleComponent(vehicleid,1146);
        }
      }
      case 2:{
        new vehicleid = GetPlayerVehicleID(playerid);
        new cartype = GetVehicleModel(vehicleid)   
        if(cartype == 411){
        AddVehicleComponent(vehicleid,1010);
    }
      }
  }
  return 1;
}
Please tell me how to make players not in
GetVehicleModel (vehicleid)
if (cartype == 560) (
This function does not work ?
Sunny I explained that I want to do?
Sorry my English
Reply


Messages In This Thread
Help me is menu - by user226 - 23.04.2009, 13:51
Re: Help me is menu - by mamorunl - 23.04.2009, 15:02
Re: Help me is menu - by user226 - 23.04.2009, 18:35
Re: Help me is menu - by chenza - 23.04.2009, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)