SA-MP Forums Archive
Help me is menu - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me is menu (/showthread.php?tid=74502)



Help me is menu - user226 - 23.04.2009

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


Re: Help me is menu - mamorunl - 23.04.2009

does it work if you use STRCMP to compare 'cartype' and '411' and '562'?


Re: Help me is menu - user226 - 23.04.2009

Quote:
Originally Posted by [NT
Mamoru ]
does it work if you use STRCMP to compare 'cartype' and '411' and '562'?
nothing.I want to Menu no clean


Re: Help me is menu - chenza - 23.04.2009

http://pastebin.com/m7dd1b9c6