Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Denis_Lapi poslato Maj 05, 2013, 15:09:53 POSLE PODNE

Naslov: [POMOC] Ne otvaraju se bizovi
Poruka od: Denis_Lapi poslato Maj 05, 2013, 15:09:53 POSLE PODNE
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)://
Naslov: Odg: [POMOC] Ne otvaraju se bizovi
Poruka od: Denis_Lapi poslato Maj 05, 2013, 15:25:57 POSLE PODNE
Zna li neko o cemu se radi?
Naslov: Odg: [POMOC] Ne otvaraju se bizovi
Poruka od: Denis_Lapi poslato Maj 05, 2013, 20:33:20 POSLE PODNE
Hvala..znacice mi ako radi :D
Naslov: Odg: [POMOC] Ne otvaraju se bizovi
Poruka od: Denis_Lapi poslato Maj 05, 2013, 21:35:43 POSLE PODNE
   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
Naslov: Odg: [POMOC] Ne otvaraju se bizovi
Poruka od: Denis_Lapi poslato Maj 05, 2013, 21:50:37 POSLE PODNE
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
Naslov: Odg: [POMOC] Ne otvaraju se bizovi
Poruka od: Denis_Lapi poslato Maj 06, 2013, 10:49:07 PRE PODNE
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
Naslov: Odg: [POMOC] Ne otvaraju se bizovi
Poruka od: pax95 poslato Maj 06, 2013, 12:03:17 POSLE PODNE
@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;
   }
Naslov: Odg: [POMOC] Ne otvaraju se bizovi
Poruka od: Denis_Lapi poslato Maj 06, 2013, 13:26:45 POSLE PODNE
Jel bi sad trebali da rade? :D
Naslov: Odg: [POMOC] Ne otvaraju se bizovi
Poruka od: Denis_Lapi poslato Maj 06, 2013, 13:30:26 POSLE PODNE
C:\Users\Novica\Desktop\denisGM\gamemodes\CLRP.pwn(55481) : error 032: array index out of bounds (variable "BizzInfo")
momci error mi izbacio
Naslov: Odg: [POMOC] Ne otvaraju se bizovi
Poruka od: Denis_Lapi poslato Maj 06, 2013, 13:37:19 POSLE PODNE
Eee pa momci svaka vam cast bug resen..Hvala vam puno, veliki pozz :) Hvala jos jednom