pare za biz

Započeo Lumpri77, Maj 07, 2010, 21:47:00 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Citatnew novac = GetPlayerMoney(playerid);
                  if(novac <= 20)
                  {
                     SendClientMessage(playerid, COLOR_RED, " Nemate dosta novca.");
                     TogglePlayerControllable(playerid, 1);
                     return 1;
                  }
                        GivePlayerWeapon(playerid, 23, 75);
                  GivePlayerMoney(playerid, -200);
                  SendClientMessage(playerid, COLOR_GREEN, " Kupio si Silenced 9mm.");
                  PlayerInfo[playerid][pContractTime] = 100000;
                  TogglePlayerControllable(playerid, 1);
                  SBizzInfo[1][sbTill] += 200;
         }
            case 1:
         {

kako da pare koje mi se oduzmu idu u gunshop 2 id (1)

Radi hvala puno može lock

EDIT: dšlo do problema jednom je radilo a poslje više ne radi u čemu je problem

evo kako sam dodavao u skriptu

ovo mi je tamo pod new

Citatnew Menu:guns;

ovo mi je pod OnPlayerSelectedMenuRow


Citatnew Menu:Durrent = GetPlayerMenu(playerid);
   if(Durrent == guns)
   {
       switch(row)
       {
           case 0:
        {
                      new novac = GetPlayerMoney(playerid);
                 if(novac <= 20)
                 {
                    SendClientMessage(playerid, COLOR_RED, " Nemate dosta novca.");
                    TogglePlayerControllable(playerid, 1);
                    return 1;
                 }
                       GivePlayerWeapon(playerid, 23, 75);
                 GivePlayerMoney(playerid, -200);
                    BizzInfo[1][bTill] += 170;
                 SendClientMessage(playerid, COLOR_GREEN, " Kupio si Silenced 9mm.");
                 PlayerInfo[playerid][pContractTime] = 100000;
                 TogglePlayerControllable(playerid, 1);
        }
           case 1:
        {
                 new novac = GetPlayerMoney(playerid);
                 if(novac <= 20)
                 {
                    SendClientMessage(playerid, COLOR_RED, " Nemate dosta novca.");
                           TogglePlayerControllable(playerid, 1);
                    return 1;
                 }
                       GivePlayerWeapon(playerid, 24, 75);
                 GivePlayerMoney(playerid, -300);
                    BizzInfo[1][bTill] += 250;
                 SendClientMessage(playerid, COLOR_GREEN, " Kupio si Desert Eagle.");
                 PlayerInfo[playerid][pContractTime] = 100000;
                 TogglePlayerControllable(playerid, 1);
...
        }
     }
   }

ovo mi je pod ongamemodeinit ( na dnu )


Citatguns = CreateMenu("Guns", 1, 50.0, 180.0, 200.0, 200.0);
  AddMenuItem(guns, 0, "Silenced 9mm 200$");
  AddMenuItem(guns, 0, "Desert Eagle 300$");
  ...

ovo mije pod onplayercommandtext

Citat
//-----------------------------------------[Guns]--------------------------------------

  if(strcmp(cmdtext, "/weaponbuy", true) == 0)
  {
  if (PlayerInfo[playerid][pLevel] >=3)
  {
   if(PlayerToPoint(3.0, playerid, 88.8099,-165.7669,2.5938))
     {
        ShowMenuForPlayer(guns, playerid);
        TogglePlayerControllable(playerid,0);
        GivePlayerMoney(playerid, -20);
     }
     else
     {
      GameTextForPlayer(playerid, "~r~Nisi u \"~b~weapon shopu~r~\"", 100, 1);
     }
     return 1;
  }
}

POMOČČČČ
Poslednja Izmena: Maj 07, 2010, 23:38:04 POSLE PODNE od [ST] SL500