[REÅ ENO]Par Errora

Započeo Plen Ki Mun, Maj 22, 2016, 21:45:10 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: DayZ
Detaljan opis problema: Izbacuje mi nesto neznam sta da radim kada i uradis nesto opet tako
Dio skripte: 

Ovo su Errori

(189) : error 017: undefined symbol "DMEnum"
(189) : error 009: invalid array size (negative, zero or out of bounds)
(1388) : warning 213: tag mismatch
(1523) : warning 213: tag mismatch
(3512) : warning 213: tag mismatch
(4620) : warning 213: tag mismatch
(4644) : warning 213: tag mismatch



A ovo linije gdje su greske

Linija (189) new PlayerInDM[MAX_PLAYERS][DMEnum];
Linija(1388) PlayerInDM[playerid][MG2] = 0;
Linija(1523)

f(PlayerInDM[playerid][MG2] == 1)
   {
       new Float:gRandomPlayerSpawnsMinigun[10][0] =
      {
         {1410.5425,2176.3142,12.0156},
         {1409.6898,2206.1653,19.8438},
         {1370.7050,2196.3381,9.7578},
         {1321.1451,2196.9858,11.0234},
         {1329.6407,2210.1064,12.0156},
         {1298.7916,2156.4512,11.0234},
         {1325.2078,2101.3110,11.0156},
         {1416.5570,2102.6685,23.4782},
         {1390.2469,2218.6946,23.4464},
         {1418.9036,2125.6411,29.6907}
      };
      new rand = random(sizeof(gRandomPlayerSpawnsMinigun));
      SetPlayerPos(playerid, gRandomPlayerSpawnsMinigun[rand][0], gRandomPlayerSpawnsMinigun[rand][1],    gRandomPlayerSpawnsMinigun[rand][2]); // Warp the player
        SetPlayerVirtualWorld(playerid, 5);
      ResetPlayerWeapons(playerid);
      SetPlayerVirtualWorld(playerid, 2);
      SetPlayerVirtualWorld(playerid, 2);
      SetPlayerHealth(playerid, 100);
      GivePlayerWeapon(playerid, 38, 1500);
    }
    return 1;
}

Linija(3512) PlayerInDM[playerid][MG2] = 0;

Linja(4620)

CMD:mg2(playerid, params[])
{
   new Float:gRandomPlayerSpawnsMinigun[10][0] =
   {
      {1410.5425,2176.3142,12.0156},
      {1409.6898,2206.1653,19.8438},
      {1370.7050,2196.3381,9.7578},
      {1321.1451,2196.9858,11.0234},
      {1329.6407,2210.1064,12.0156},
      {1298.7916,2156.4512,11.0234},
      {1325.2078,2101.3110,11.0156},
      {1416.5570,2102.6685,23.4782},
      {1390.2469,2218.6946,23.4464},
      {1418.9036,2125.6411,29.6907}
   };
   new rand = random(sizeof(gRandomPlayerSpawnsMinigun));
   SetPlayerPos(playerid, gRandomPlayerSpawnsMinigun[rand][0], gRandomPlayerSpawnsMinigun[rand][1], gRandomPlayerSpawnsMinigun[rand][2]); // Warp the player
   ResetPlayerWeapons(playerid);
   SetPlayerVirtualWorld(playerid, 5);
   PlayerInDM[playerid][MG2] = 1;
   SetPlayerVirtualWorld(playerid, 2);
   SetPVarInt(playerid, "PlayerInDM", 1);
   SetPlayerHealth(playerid, 100);
   SendClientMessage(playerid, COLOR_ORANGE, "Welcome to {11FF00}Minigun DM!");
   GivePlayerWeapon(playerid, 38, 1500);
   return 1;
}

Linija(4644)

public OnPlayerLeaveZone(playerid)
{
   if(GetPVarInt(playerid, "PlayerInDM") == 1)
   {
       SetPlayerWeather(playerid, 2);  SetPlayerTime(playerid, 14, 0);
       //----------------------------------------------------------------------
       PlayerInDM[playerid][MG2] = 0; 
       //----------------------------------------------------------------------
      SetPlayerVirtualWorld(playerid, 0);
      TogglePlayerControllable(playerid, 1);
      DeletePVar(playerid, "PlayerInDM");
      ResetPlayerWeapons(playerid);
      SetPlayerArmour(playerid, 0);
      SetPlayerHealth(playerid, 100);
   //----------------------------------------------------------------------
      CallRemoteFunction("OnPlayerSpawn", "i", playerid);
   }
   return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno): Nema potrebe
Poslednja Izmena: Maj 25, 2016, 14:13:18 POSLE PODNE od â–… â–† â–ˆ Rudimental â–ˆ â–† â–…

probaj zamijeniti PlayerInDM[playerid][MG2]
sa  PlayerInDM[playerid]

i

new PlayerInDM[MAX_PLAYERS][DMEnum];

sa


new PlayerInDM[MAX_PLAYERS];

Citat: Arkoo poslato Maj 22, 2016, 23:26:18 POSLE PODNE
probaj zamijeniti PlayerInDM[playerid][MG2]
sa  PlayerInDM[playerid]

i

new PlayerInDM[MAX_PLAYERS][DMEnum];

sa


new PlayerInDM[MAX_PLAYERS];

Ja mislim da nece da mu radi to zato sto verovatno koristi enum iz kojeg uzima varijable ali mu se ne slaze sve kako treba.
Poslednja Izmena: Maj 22, 2016, 23:30:19 POSLE PODNE od Seiz


Mozda ti ide drugacije myb mG2 ili nesto vidi.
heroin rap - Moskri u kuci, od sledece lajne glava ce mi puci


Lock na zahtev autora.
PS: Sledeci put koristi [ code ] Text [ /code ] a mozes i [ pawn ] Text [ /pawn ] (sa spojenim zagradama) za kodove iz scripte.