[Pomoc] firma

Započeo [GU:RP] ivica 156, Januar 15, 2012, 20:07:05 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:Cyber
Detaljan opis problema:dodao sam sada 3 marketa i sada 2 mi rade ono da dolazi novac u kasu i definirao sam koji biz i sve i sad na kasi je 0 i ja kupim nesta i opet nula a saveao sam kordinate i definirao sam id bizza i opet nece mozel pomoc
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Mr.Gagi

Daj da vidim kako si stavio da idu pare u biz. Mozda si napravio gresku

evo cijele komande :
ovako radi neki nezz napamet
if(strcmp(cmd, "/kupi", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         if (PlayerToPoint(5.0, playerid,-29.3113,-184.1468,1003.5469)) //kiosk
         {
            if(BizzInfo[11][bProducts] == 0)
            {
               GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
               return 1;
            }
            ShowPlayerDialog(playerid, 203, DIALOG_STYLE_LIST, "{00C0FF}Dobrodosli u SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
         }
         else if (PlayerToPoint(5.0, playerid,6.0912,-29.2719,1003.5494)) //kiosk br 2
         {
            if(BizzInfo[12][bProducts] == 0)
            {
               GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
               return 1;
            }
            ShowPlayerDialog(playerid, 204, DIALOG_STYLE_LIST, "{00C0FF}Dobrodosli u SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
         }
         else if (PlayerToPoint(5.0, playerid,-30.9467,-89.6096,1003.5469)) //kiosk br 3
         {
            if(BizzInfo[13][bProducts] == 0)
            {
               GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
               return 1;
            }
            ShowPlayerDialog(playerid, 205, DIALOG_STYLE_LIST, "{00C0FF}Dobrodosli u SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
         }
         else if (PlayerToPoint(5.0, playerid,-22.2104,-138.0743,1003.5469)) //kiosk br 4
         {
            if(BizzInfo[14][bProducts] == 0)
            {
               GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
               return 1;
            }
            ShowPlayerDialog(playerid, 206, DIALOG_STYLE_LIST, "{00C0FF}Dobrodosli u SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
         }
         else if (PlayerToPoint(5.0, playerid,-27.3123,-29.2776,1003.5573)) //kiosk br 5
         {
            if(BizzInfo[15][bProducts] == 0)
            {
               GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
               return 1;
            }
            ShowPlayerDialog(playerid, 207, DIALOG_STYLE_LIST, "{00C0FF}Dobrodosli u SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
         }
         else if (PlayerToPoint(5.0, playerid,-26.6916,-55.7149,1003.5469)) //kiosk br 6
         {
            if(BizzInfo[16][bProducts] == 0)
            {
               GameTextForPlayer(playerid, "~r~Nema Produkata", 5000, 1);
               return 1;
            }
            ShowPlayerDialog(playerid, 100, DIALOG_STYLE_LIST, "{00C0FF}Dobrodosli u SuperMarket", "Mobitel 150$\nSrecka $500\nImenik $100\nKockica $10\nUpaljac $5\nCigare $30\nKondom $1\nKamera $50\nMaska $500\nSat $100\nOprema za ribolov $150\nKonop $10\nSprej $50\nPovez $10", "U redu", "Odustani");
         }
         else
            {
              SendClientMessage(playerid, WHITE, "("COL_RED"Greska{FFFFFF}!) Ne nalazite se u "COL_RED"SuperMarketu!");
             return 1;
            }
      }
      return 1;
   }
ali znam da nece biz 12 i biz 16 a sveje isto kao i ovo

Mr.Gagi

Pod OnDialogResponse is trebao namestiti da dodaje u firmu:
BizzInfo[ID_BIZA][bTill] += kolicina_novca;
I tako stavis za bizeve posto vidim da si radio za svaki poseban dialog :D iako nisi morao nz sto :D

evo ga radi ma prebacio sam firme sa drugog moda i bili pomijesani idovi pa sam sada rijesio i prilagodio svojim idovima moze lock!!