[POMOC] Ne otvaraju se bizovi

Započeo Denis_Lapi, Maj 05, 2013, 15:09:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:MOji GM
Detaljan opis problema:Ovako ne otvaraju se bizovi, oni su kad ih kupim zatvoreni i ne mogu da ih otkljucam da bi igraci mogli ici unutra i kupovati..Eto problema
Dio skripte: http://pastebin.com/DHGgLyHN Evo mislim da vam ovo treba ako treba jos nesto dacu vam :D
Neke slike/video za lakse dobivanje pomoci(neobavezno)://

[FS] Bank Sistem
[TuT] Array Sistem (Napredna)


"Pa krenite na mene i provesce te se super ko kapetan Kuka kada levom brise dupe"

www.denis-lapi.com

Zna li neko o cemu se radi?

[FS] Bank Sistem
[TuT] Array Sistem (Napredna)


"Pa krenite na mene i provesce te se super ko kapetan Kuka kada levom brise dupe"

www.denis-lapi.com

Hvala..znacice mi ako radi :D

[FS] Bank Sistem
[TuT] Array Sistem (Napredna)


"Pa krenite na mene i provesce te se super ko kapetan Kuka kada levom brise dupe"

www.denis-lapi.com

   if(strcmp(cmd, "/kupifirmu", true) == 0)
   {
       if(IsPlayerConnected(playerid))
      {
         new Float:oldposx, Float:oldposy, Float:oldposz;
         GetPlayerName(playerid, playername, sizeof(playername));
         GetPlayerPos(playerid, oldposx, oldposy, oldposz);
            if(PlayerInfo[playerid][pPbiskey] != 255)
         {
            SendClientMessage(playerid, COLOR_WHITE, "   Vec posjedujete biznis, kucajte /prodajfirmu ako zelite da kupite ovaj.");
            return 1;
         }
         for(new b = 0; b < sizeof(SBizzInfo); b++)
         {
            if(PlayerToPoint(2.0, playerid, SBizzInfo[sbEntranceX], SBizzInfo[sbEntranceY], SBizzInfo[sbEntranceZ]) && SBizzInfo[sbOwned] == 0)
            {
               if(PlayerInfo[playerid][pLevel] < SBizzInfo[sbLevelNeeded])
               {
                  format(string, sizeof(string), "Morate biti lvl %d da biste kupili to",SBizzInfo[sbLevelNeeded]);
                  SendClientMessage(playerid, COLOR_GRAD5, string);
                  return 1;
               }
               if(GetPlayerMoney(playerid) > SBizzInfo[sbBuyPrice])
                   {
                  PlayerInfo[playerid][pPbiskey] = b+100;
                  SBizzInfo[sbOwned] = 1;
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  strmid(SBizzInfo[sbOwner], sendername, 0, strlen(sendername), 255);
                  GivePlayerCash(playerid,-SBizzInfo[sbBuyPrice]);
                  SendClientMessage(playerid, COLOR_WHITE, "Cestitamo vam na novom biznisu.");
                  SendClientMessage(playerid, COLOR_WHITE, "Kucajte /help da pogledate pomoc oko biznisa.");
                  OnPropUpdate();
                  OnPropTextdrawUpdate(3, b);
                  SacuvajIgraca(playerid);
                  return 1;
               }
               else
               {
                  SendClientMessage(playerid, COLOR_WHITE, "Nemate dovoljno novca da kupite to");
                  return 1;
               }
            }
         }
         for(new b = 0; b < sizeof(BizzInfo); b++)
         {
            if(PlayerToPoint(2.0, playerid, BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ]) && BizzInfo[bOwned] == 0)
            {
               if(PlayerInfo[playerid][pLevel] < BizzInfo[bLevelNeeded])
               {
                  format(string, sizeof(string), "Morate biti level %d da kupite to",BizzInfo[bLevelNeeded]);
                  SendClientMessage(playerid, COLOR_GRAD5, string);
                  return 1;
               }
               if(GetPlayerMoney(playerid) > BizzInfo[bBuyPrice])
               {
                  PlayerInfo[playerid][pPbiskey] = b;
                  BizzInfo[bOwned] = 1;
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  strmid(BizzInfo[bOwner], sendername, 0, strlen(sendername), 255);
                  GivePlayerCash(playerid,-BizzInfo[bBuyPrice]);
                  SetPlayerInterior(playerid,BizzInfo[bInterior]);
                  PlayerInfo[playerid][pInt] = BizzInfo[bInterior];
                  SetPlayerPos(playerid,BizzInfo[bExitX],BizzInfo[bExitY],BizzInfo[bExitZ]);
                  GameTextForPlayer(playerid, "~w~Dobrodosli~n~Mozete izaci u svakom trenutku ako dodjete do vrata i kucate /exit", 5000, 3);
                  PlayerInfo[playerid][pInt] = BizzInfo[bInterior];
                  PlayerInfo[playerid][pLocal] = b ;
                  SendClientMessage(playerid, COLOR_WHITE, "Cestitamo vam na novom biznisu.");
                  SendClientMessage(playerid, COLOR_WHITE, "Kucajte /help da pogledate pomoc oko biznisa.");
                  OnPropUpdate();
                  OnPropTextdrawUpdate(2, b);
                  SacuvajIgraca(playerid);
                  return 1;
               }
               else
               {
                  SendClientMessage(playerid, COLOR_WHITE, "Nemate dovoljno novca da kupite to");
                  return 1;
               }
            }
         }
      }
      return 1;
   }
//*-*********************************************************************************************

Ae mi edit ti ovo, to je cmd za kupovanje biza

[FS] Bank Sistem
[TuT] Array Sistem (Napredna)


"Pa krenite na mene i provesce te se super ko kapetan Kuka kada levom brise dupe"

www.denis-lapi.com

C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55271) : error 032: array index out of bounds (variable "SBizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55273) : error 032: array index out of bounds (variable "SBizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55275) : error 032: array index out of bounds (variable "SBizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55279) : error 032: array index out of bounds (variable "SBizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55283) : error 033: array must be indexed (variable "SBizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55286) : error 032: array index out of bounds (variable "SBizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55303) : error 032: array index out of bounds (variable "BizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55305) : error 032: array index out of bounds (variable "BizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55307) : error 032: array index out of bounds (variable "BizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55311) : error 032: array index out of bounds (variable "BizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55314) : error 033: array must be indexed (variable "BizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55318) : error 032: array index out of bounds (variable "BizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55319) : error 032: array index out of bounds (variable "BizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55320) : error 032: array index out of bounds (variable "BizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55320) : error 006: must be assigned to an array
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55321) : error 032: array index out of bounds (variable "BizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55323) : error 032: array index out of bounds (variable "BizzInfo")
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55323) : error 006: must be assigned to an array

//********************************************************************************************
EROR

[FS] Bank Sistem
[TuT] Array Sistem (Napredna)


"Pa krenite na mene i provesce te se super ko kapetan Kuka kada levom brise dupe"

www.denis-lapi.com

Ae mi ti edituj neku od ove dve za koje mislis da treba kod mene nece, ja stavim ono sto si mi reko pise error undefined simbol "i" ,ja ga #define i ono jos gore pawno prestane sa radom :/ nzm sta da mu radim ae ako mozes ti mi to sredi izvorni GM je CLRP

[FS] Bank Sistem
[TuT] Array Sistem (Napredna)


"Pa krenite na mene i provesce te se super ko kapetan Kuka kada levom brise dupe"

www.denis-lapi.com

pax95

@Sabljak
Kada ti posalje tako u postu fale neki delovi kao sto vidis obrisalo mu [ b ] i to svuda
@Topic
Evo valjda sam dodao svuda [ b ]
   if(strcmp(cmd, "/kupifirmu", true) == 0)
   {
       if(IsPlayerConnected(playerid))
      {
         new Float:oldposx, Float:oldposy, Float:oldposz;
         GetPlayerName(playerid, playername, sizeof(playername));
         GetPlayerPos(playerid, oldposx, oldposy, oldposz);
            if(PlayerInfo[playerid][pPbiskey] != 255)
         {
            SendClientMessage(playerid, COLOR_WHITE, "   Vec posjedujete biznis, kucajte /prodajfirmu ako zelite da kupite ovaj.");
            return 1;
         }
         for(new b = 0; b < sizeof(SBizzInfo); b++)
         {
            if(PlayerToPoint(2.0, playerid, SBizzInfo[b][sbEntranceX], SBizzInfo[b][sbEntranceY], SBizzInfo[b][sbEntranceZ]) && SBizzInfo[b][sbOwned] == 0)
            {
               if(PlayerInfo[playerid][pLevel] < SBizzInfo[b][sbLevelNeeded])
               {
                  format(string, sizeof(string), "Morate biti lvl %d da biste kupili to",SBizzInfo[b][sbLevelNeeded]);
                  SendClientMessage(playerid, COLOR_GRAD5, string);
                  return 1;
               }
               if(GetPlayerMoney(playerid) > SBizzInfo[b][sbBuyPrice])
                   {
                  PlayerInfo[playerid][pPbiskey] = b+100;
                  SBizzInfo[b][sbOwned] = 1;
  SBizzInfo[b][sbLocked] = 0;
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  strmid(SBizzInfo[b][sbOwner], sendername, 0, strlen(sendername), 255);
                  GivePlayerCash(playerid,-SBizzInfo[b][sbBuyPrice]);
                  SendClientMessage(playerid, COLOR_WHITE, "Cestitamo vam na novom biznisu.");
                  SendClientMessage(playerid, COLOR_WHITE, "Kucajte /help da pogledate pomoc oko biznisa.");
                  OnPropUpdate();
                  OnPropTextdrawUpdate(3, b);
                  SacuvajIgraca(playerid);
                  return 1;
               }
               else
               {
                  SendClientMessage(playerid, COLOR_WHITE, "Nemate dovoljno novca da kupite to");
                  return 1;
               }
            }
         }
         for(new b = 0; b < sizeof(BizzInfo); b++)
         {
            if(PlayerToPoint(2.0, playerid, BizzInfo[b][bEntranceX], BizzInfo[b][bEntranceY], BizzInfo[b][bEntranceZ]) && BizzInfo[b][bOwned] == 0)
            {
               if(PlayerInfo[playerid][pLevel] < BizzInfo[b][bLevelNeeded])
               {
                  format(string, sizeof(string), "Morate biti level %d da kupite to",BizzInfo[bLevelNeeded]);
                  SendClientMessage(playerid, COLOR_GRAD5, string);
                  return 1;
               }
               if(GetPlayerMoney(playerid) > BizzInfo[b][bBuyPrice])
               {
                  PlayerInfo[playerid][pPbiskey] = b;
                  BizzInfo[b][bOwned] = 1;
                  BizzInfo[b][bLocked] = 0;
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  strmid(BizzInfo[b][bOwner], sendername, 0, strlen(sendername), 255);
                  GivePlayerCash(playerid,-BizzInfo[b][bBuyPrice]);
                  SetPlayerInterior(playerid,BizzInfo[b][bInterior]);
                  PlayerInfo[playerid][pInt] = BizzInfo[b][bInterior];
                  SetPlayerPos(playerid,BizzInfo[b][bExitX],BizzInfo[b][bExitY],BizzInfo[b][bExitZ]);
                  GameTextForPlayer(playerid, "~w~Dobrodosli~n~Mozete izaci u svakom trenutku ako dodjete do vrata i kucate /exit", 5000, 3);
                  PlayerInfo[playerid][pInt] = BizzInfo[b][bInterior];
                  PlayerInfo[playerid][pLocal] = b ;
                  SendClientMessage(playerid, COLOR_WHITE, "Cestitamo vam na novom biznisu.");
                  SendClientMessage(playerid, COLOR_WHITE, "Kucajte /help da pogledate pomoc oko biznisa.");
                  OnPropUpdate();
                  OnPropTextdrawUpdate(2, b);
                  SacuvajIgraca(playerid);
                  return 1;
               }
               else
               {
                  SendClientMessage(playerid, COLOR_WHITE, "Nemate dovoljno novca da kupite to");
                  return 1;
               }
            }
         }
      }
      return 1;
   }

Jel bi sad trebali da rade? :D

[FS] Bank Sistem
[TuT] Array Sistem (Napredna)


"Pa krenite na mene i provesce te se super ko kapetan Kuka kada levom brise dupe"

www.denis-lapi.com

C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55481) : error 032: array index out of bounds (variable "BizzInfo")
momci error mi izbacio

[FS] Bank Sistem
[TuT] Array Sistem (Napredna)


"Pa krenite na mene i provesce te se super ko kapetan Kuka kada levom brise dupe"

www.denis-lapi.com

Eee pa momci svaka vam cast bug resen..Hvala vam puno, veliki pozz :) Hvala jos jednom

[FS] Bank Sistem
[TuT] Array Sistem (Napredna)


"Pa krenite na mene i provesce te se super ko kapetan Kuka kada levom brise dupe"

www.denis-lapi.com