Zauzimanje Sistem

Započeo Edo., Decembar 03, 2017, 20:01:47 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Underpoint od gReeDy.aMx
Detaljan opis problema:Pa ubacivao sam onaj sistem zauzimanja od Attila,ali m izlaze  ovi errori kaze da nije definisamno pa sad ne znam ja definisem ono new gTeam[MAX_PLAYERS];,nece opet isto pa ako neko zna rijesiti nek napise hitno jeee
Dio skripte:
rp.pwn(6738) : warning 217: loose indentation
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(6763) : warning 217: loose indentation
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(6857) : error 017: undefined symbol "gTeam"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(6860) : error 017: undefined symbol "gZauzima"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(6875) : error 017: undefined symbol "gZauzima"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(6879) : error 017: undefined symbol "gTeam"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(6887) : error 017: undefined symbol "gTeam"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(6888) : error 017: undefined symbol "gTeam"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7752) : error 017: undefined symbol "The"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7752) : error 017: undefined symbol "Family"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7752) : error 029: invalid expression, assumed zero
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7752) : fatal error 107: too many error messages on one line
Neke slike/video za lakse dobivanje pomoci(neobavezno):
••• Nexus Project Community •••
• Founder & Developer •


Citat: Sploxs poslato Decembar 03, 2017, 20:16:51 POSLE PODNE
Da nam mkzda kod dadneš?
@Sploxs Pa brate na svakom kodu sto ima ono je error uglavnom je npr [gTeam] itdd
••• Nexus Project Community •••
• Founder & Developer •

Daj nam kod, u sta da gledamo? fino ti je rekao Sploxs
CitatC:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(6857) : error 017: undefined symbol "gTeam"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(6860) : error 017: undefined symbol "gZauzima"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(6875) : error 017: undefined symbol "gZauzima"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(6879) : error 017: undefined symbol "gTeam"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(6887) : error 017: undefined symbol "gTeam"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(6888) : error 017: undefined symbol "gTeam"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7752) : error 017: undefined symbol "The"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7752) : error 017: undefined symbol "Family"
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7752) : error 029: invalid expression, assumed zero
C:\Users\Edo\Desktop\Underpoint RolePlay 0.3x\gamemodes\up-rp.pwn(7752) : fatal error 107: too many error messages on one line
ove linije sve
heroin rap - Moskri u kuci, od sledece lajne glava ce mi puci

@Sploxs @Łuk@ Evo vam linije

forward ZonaZauzmi(playerid);
public ZonaZauzmi(playerid)
{
   if(!IsPlayerInRangeOfPoint(playerid, 20.0, GZ[zonaid[playerid]][gPickupx], GZ[zonaid[playerid]][gPickupy], GZ[zonaid[playerid]][gPickupz]))
   {
      new id = zonaid[playerid];
      GangZoneStopFlashForAll(ZonaID[id]);
      PlayerTextDrawHide(playerid, klecanjetd[playerid]);
      KillTimer(zonatimer[playerid]);
      SCM(playerid,SCHOOL,"Niste uspeli da zauzmete teritoriju, udaljili ste se od mjesta zauzimanja!");
      new string[128];
      format(string,sizeof(string),"{0099CC}[OBAVJESTENJE] Uspijesno ste obranili vasu teritoriju.");
      SendFamilyMessage(GZ[id][gTeam],-1,string);
      zonaid[playerid] -= 1;
      zonatime[playerid] -= 1;
      GZ[id][gZauzima] = 0;
      return 1;
   }
   zonatime[playerid] -= 1;
   new text2[30];
   format(text2, sizeof(text2), "Zauzimanje u toku: %s.",SecToMin(zonatime[playerid]));
   PlayerTextDrawSetString(playerid,klecanjetd[playerid], text2);
   PlayerTextDrawShow(playerid, klecanjetd[playerid]);
   if(zonatime[playerid] < 1)
   {
      PlayerTextDrawHide(playerid, klecanjetd[playerid]);
      SCM(playerid,-1,"Uspesno ste zauzeli ovu zonu!");
      KillTimer(zonatimer[playerid]);
      new id = zonaid[playerid];
      GangZoneStopFlashForAll(ZonaID[id]);
      GZ[id][gZauzima] = 0;
      new string[256];
      format(string,sizeof(string),"{0099CC}[OBAVJESTENJE] Vasa organizacija je prosirila svoju vladavinu na jos jednu teritoriju.");
      SendFamilyMessage(PlayerInfo[playerid][pClan],-1,string);
      format(string,sizeof(string),"{0099CC}             Clan %s je zauzeo teritoriju koju je kontrolirala organizacija %s.",GetName(playerid),ImeOrganizacije(GZ[id][gTeam]));
      SendFamilyMessage(PlayerInfo[playerid][pClan],-1,string);
       DestroyDynamic3DTextLabel(ZonaLabel[id]);
      GangZoneHideForAll(ZonaID[id]);
      NamjestiBoju(ZonaID[id],PlayerInfo[playerid][pClan]);
      format(string,sizeof(string),"{C20E0E}[ {8ACADE}TERITORIJA {C20E0E}]\nTeritorija je u vlasnistvu bande {8ACADE}%s\n{C20E0E}Ako zelis da je zauzmes kucaj {8ACADE}/zauzmi\n{C20E0E}Teritoriju ce biti moguce preuzeti za {8ACADE}%d minuta",ImeOrganizacije(PlayerInfo[playerid][pClan]),GZ[id][gPreuzeto]);
      ZonaLabel[id] = CreateDynamic3DTextLabel(string ,0x0099CCAA,GZ[id][gPickupx], GZ[id][gPickupy], GZ[id][gPickupz],7);
      format(string,sizeof(string),"{0099CC}[OBAVJESTENJE] Suparnicka organizacija %s je preuzela jednu od vasih teritorija.",ImeOrganizacije(PlayerInfo[playerid][pClan]));
      SendFamilyMessage(GZ[id][gTeam],-1,string);
      GZ[id][gTeam] = PlayerInfo[playerid][pClan];
      SacuvajZonu(id);
   }
   return 1;
}

         if(GZ[id][gTeam] == clan || GZ[id][gTeam] == lider) return Error(playerid,"Ne mozete zauzimati svoju teritoriju!");
         if(GZ[id][gPreuzeto] > 0) return SendClientMessage(playerid,-1,"Ova teritorija je skoro okupirana, sacekaj malo.");
         GZ[id][gPreuzeto] = 240;
         GZ[id][gZauzima] = 1;
         zonaid[playerid] = id;
         zonatime[playerid] = 600;
         zonatimer[playerid] = SetTimerEx("ZonaZauzmi", 1000, true, "i", playerid);
         SendClientMessage(playerid,0x0099CCAA,"ZAPOCEO SI ZAUZIMANJE TERITORIJE. Moras ostati ziv sledecih 10 minuta kako bi je osvojio.");
         SendClientMessage(playerid,0x0099CCAA,"[NAPOMENA]: Ne smijete se previse udaljiti od mesta zauzimanja, jer ce zauzimanje biti prekinuto.");
         if(clan == 2 || lider == 2)
         {
             GangZoneFlashForAll(ZonaID[id],0xB55A00FF);
         }
         else if(clan == 3 || lider == 3)
         {
            GangZoneFlashForAll(ZonaID[id],0x808080FF);
         }
         else if(clan == 4 || lider == 4)
         {
            GangZoneFlashForAll(ZonaID[id],0x00FF00FF);
         }
         else if(clan == 5 || lider == 5)
         {
             GangZoneFlashForAll(ZonaID[id],0x7B2BD5FF);
         }
         else if(clan == 6 || lider == 6)
         {
            GangZoneFlashForAll(ZonaID[id],0xFFFFFFFF);
         }
         if(PlayerInfo[playerid][pClan] > 0)
         {
            format(string,sizeof(string),"{F3FF02}[OBAVESTENJE] Clan vase organizacije pokusava da zauzme tudju teritoriju. [ESC MENU-MAP]");
            SendFamilyMessage(PlayerInfo[playerid][pClan],-1,string);
         }
         format(string,sizeof(string),"{F3FF02}[OBAVESTENJE] Druga organizacija pokusava da zauzime vasu teritoriju. [ESC MENU-MAP]");
         SendFamilyMessage(GZ[id][gTeam],-1,string);
         return 1;
      }
   }
   return SendClientMessage(playerid,-1,"Ne nalazite se u blizini tacke za preuzimanje zone.");
}
••• Nexus Project Community •••
• Founder & Developer •

Jesi definisao, "gTeam" i ta sranja?
Ubacivao sam ja sa ZG Moda zone.
• Sve sam u stanju da pustim da ide
Nisam od onih što svima se svide. •

Rijesio sam sam
Ali ipak hvala @Sploxs @Łuk@ i @Eldin ッ Sto su htjeli da pomognu
••• Nexus Project Community •••
• Founder & Developer •