pomoc oko padanja moda

Započeo Tony#, Januar 04, 2018, 14:39:56 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Detaljan opis problema:Mod padne svakih 1h tako nesto evo server log i taj dio skripte
Dio skripte:
Citat[00:07:33] [debug] Run time error 4: "Array index out of bounds"
[00:07:33] [debug]  Attempted to read/write array element at index 65535 in array of size 1000
[00:07:33] [debug] AMX backtrace:
[00:07:33] [debug] #0 002d4870 in ?? (65535) from uv-rp.amx
[00:07:33] [debug] #1 00169b00 in ?? (1, 65535, 1084122727, 54) from uv-rp.amx
[00:07:33] [debug] #2 0000b328 in public OnPlayerTakeDamage (1, 65535, 1084122727, 54, 3) from uv-rp.amx
i evo onplayertakedamage
Citatpublic OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
   if(IgracPolicajac(issuerid))
   {
      if(GetPlayerWeapon(issuerid) == 23)
      {
         new string[512];
         if(PlayerInfo[playerid][pTrazeniLevel] == 0) return SCM(issuerid,-1,""PLAVA"[GRESKA] "SIVA"Igrac nema Wanted Level!");
         if(IgracPolicajac(playerid)) return SCM(issuerid,-1,""PLAVA"(info) "SIVA"Ne mozes tazovati PD!");
         if(PlayerInfo[issuerid][pRank] == 0) return SCM(issuerid,-1,""PLAVA"(info) "SIVA"Suspendovan si!");
         if(AdminDuty[playerid] == 1) return SCM(issuerid,-1,""PLAVA"(info) "SIVA"Taj igrac je Admin na duznosti!");
         format(string, sizeof(string), "%s puca tazerom na %s-a i pogadja ga.", GetName(issuerid) ,GetName(playerid));
         ProxDetector(20.0, issuerid, string, PROX,PROX,PROX,PROX,PROX);
         TogglePlayerControllable(playerid, 0); IgracTazovan[playerid] = 1;
         TazerTimer[playerid] = SetTimerEx("TazovanTajmer", 15000, false, "i", playerid);
         OnePlayAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
      }
   }
   return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):///
Poslednja Izmena: Januar 04, 2018, 14:43:16 POSLE PODNE od Tony0203

[pawn]public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
   if ( issuerid != INVALID_PLAYER_ID ) {
      if(IgracPolicajac(issuerid))
      {
         if(GetPlayerWeapon(issuerid) == 23)
         {
            new string[86];
            if(PlayerInfo[playerid][pTrazeniLevel] == 0) return SCM(issuerid,-1,""PLAVA"[GRESKA] "SIVA"Igrac nema Wanted Level!");
            if(IgracPolicajac(playerid)) return SCM(issuerid,-1,""PLAVA"(info) "SIVA"Ne mozes tazovati PD!");
            if(PlayerInfo[issuerid][pRank] == 0) return SCM(issuerid,-1,""PLAVA"(info) "SIVA"Suspendovan si!");
            if(AdminDuty[playerid] == 1) return SCM(issuerid,-1,""PLAVA"(info) "SIVA"Taj igrac je Admin na duznosti!");
            format(string, sizeof(string), "%s puca tazerom na %s-a i pogadja ga.", GetName(issuerid) ,GetName(playerid));
            ProxDetector(20.0, issuerid, string, PROX,PROX,PROX,PROX,PROX);
            TogglePlayerControllable(playerid, 0); IgracTazovan[playerid] = 1;
            TazerTimer[playerid] = SetTimerEx("TazovanTajmer", 15000, false, "i", playerid);
            OnePlayAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
         }
      }
   }
   return 1;
}[/pawn]


bilo je lijepo dok je trajalo.





Citat: Tony0203 poslato Januar 04, 2018, 14:49:33 POSLE PODNE
Pa ima vec?
pa moraš zatvorit body koji otvoriš lol


bilo je lijepo dok je trajalo.