daily pastebin goal
51%
SHARE
TWEET

Opsirnije

a guest Aug 17th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //=========ServerLog===========================================
  2. [04:40:55] [join] Ivcha has joined the server (0:192.168.8.102)
  3. [04:41:23] [debug] Run time error 4: "Array index out of bounds"
  4. [04:41:23] [debug]  Attempted to read/write array element at index 65535 in array of size 100
  5. [04:41:23] [debug] AMX backtrace:
  6. [04:41:23] [debug] #0 002ced30 in IgracPolicajac (playerid=65535) at C:\Users\Pazz\Desktop\New World UP\gamemodes\NWRPUP.pwn:31452
  7. [04:41:23] [debug] #1 0011a5dc in ?? (... <3 arguments>) at C:\Users\Pazz\Desktop\New World UP\gamemodes\NWRPUP.pwn:7744
  8. [04:41:23] [debug] #2 00009e6c in public OnPlayerDeath (playerid=0, killerid=65535, reason=54) at C:\Users\Pazz\Desktop\New World UP\pawno\include\YSI\y_hooks/impl.inc:753
  9. [04:42:08] [debug] Run time error 4: "Array index out of bounds"
  10. [04:42:08] [debug]  Attempted to read/write array element at index 65535 in array of size 100
  11. [04:42:08] [debug] AMX backtrace:
  12. [04:42:08] [debug] #0 002ced30 in IgracPolicajac (playerid=65535) at C:\Users\Pazz\Desktop\New World UP\gamemodes\NWRPUP.pwn:31452
  13. [04:42:08] [debug] #1 0011a5dc in ?? (... <3 arguments>) at C:\Users\Pazz\Desktop\New World UP\gamemodes\NWRPUP.pwn:7744
  14. [04:42:08] [debug] #2 00009e6c in public OnPlayerDeath (playerid=0, killerid=65535, reason=54) at C:\Users\Pazz\Desktop\New World UP\pawno\include\YSI\y_hooks/impl.inc:753
  15. [04:42:21] [part] Ivcha has left the server (0:1)
  16.  
  17. //=============================================================
  18. IgracPolicajac(playerid)
  19. {
  20.     if(PlayerInfo[playerid][pClan] == 1) <<<======Linija 31452
  21.     {
  22.         return 1;
  23.     }
  24.     else if(PlayerInfo[playerid][pLider] == 1)
  25.     {
  26.         return 1;
  27.     }
  28.     return 0;
  29. }
  30. //==============================================================
  31. public OnPlayerDeath(playerid, killerid, reason)
  32. {
  33.     if(killerid != INVALID_PLAYER_ID)
  34.     {
  35.         PlayerInfo[killerid][pUbistava]++; PlayerInfo[playerid][pSmrti]++;
  36.         ResetPlayerWeapons(playerid); ResetujVar(playerid);
  37.     }
  38.     IgracAnimira[playerid] = 0;
  39.     ////////////////////////////////////////////////////////////
  40.     if(killerid != INVALID_PLAYER_ID)
  41.     {
  42.         if(IgracPolicajac(killerid))
  43.         {
  44.             PlayerInfo[killerid][pTrazeniLevel] = 0;
  45.             SetPlayerColor(playerid, 0x2641FEAA);
  46.         }
  47.     }
  48.     //======================Skillovi============================================
  49.     if(IsPlayerConnected(killerid))
  50.     {
  51.         if(reason == 22)
  52.         {
  53.             if(PlayerInfo[killerid][pPistSkill] >= 0 && PlayerInfo[killerid][pPistSkill] <= 1000)
  54.             {
  55.                 PlayerInfo[killerid][pPistSkill] += 20;
  56.                 SetPlayerSkills(killerid);
  57.             }
  58.         }
  59.         if(reason == 23)
  60.         {
  61.             if(PlayerInfo[killerid][pSilenSkill] >= 0 && PlayerInfo[killerid][pSilenSkill] <= 1000)
  62.             {
  63.                 PlayerInfo[killerid][pSilenSkill] += 20;
  64.                 SetPlayerSkills(killerid);
  65.             }
  66.         }
  67.         if(reason == 24)
  68.         {
  69.             if(PlayerInfo[killerid][pDesertSkill] >= 0 && PlayerInfo[killerid][pDesertSkill] <= 1000)
  70.             {
  71.                 PlayerInfo[killerid][pDesertSkill] += 20;
  72.                 SetPlayerSkills(killerid);
  73.             }
  74.         }
  75.         if(reason == 25)
  76.         {
  77.             if(PlayerInfo[killerid][pShotgSkill] >= 0 && PlayerInfo[killerid][pShotgSkill] <= 1000)
  78.             {
  79.                 PlayerInfo[killerid][pShotgSkill] += 20;
  80.                 SetPlayerSkills(killerid);
  81.             }
  82.         }
  83.         if(reason == 26)
  84.         {
  85.             if(PlayerInfo[killerid][pSawnSkill] >= 0 && PlayerInfo[killerid][pSawnSkill] <= 800)
  86.             {
  87.                 PlayerInfo[killerid][pSawnSkill] += 20;
  88.                 SetPlayerSkills(killerid);
  89.             }
  90.         }
  91.         if(reason == 27)
  92.         {
  93.             if(PlayerInfo[killerid][pCombSkill] >= 0 && PlayerInfo[killerid][pCombSkill] <= 1000)
  94.             {
  95.                 PlayerInfo[killerid][pCombSkill] += 20;
  96.                 SetPlayerSkills(killerid);
  97.             }
  98.         }
  99.  
  100.         if(reason == 28 || reason == 32)
  101.         {
  102.             if(PlayerInfo[killerid][pUziSkill] >= 0 && PlayerInfo[killerid][pUziSkill] <= 800)
  103.             {
  104.                 PlayerInfo[killerid][pUziSkill] += 20;
  105.                 SetPlayerSkills(killerid);
  106.             }
  107.         }
  108.  
  109.         if(reason == 29)
  110.         {
  111.             if(PlayerInfo[killerid][pSmgSkill] >= 0 && PlayerInfo[killerid][pSmgSkill] <= 1000)
  112.             {
  113.                 PlayerInfo[killerid][pSmgSkill] += 20;
  114.                 SetPlayerSkills(killerid);
  115.             }
  116.         }
  117.  
  118.         if(reason == 30)
  119.         {
  120.             if(PlayerInfo[killerid][pAkSkill] >= 0 && PlayerInfo[killerid][pAkSkill] <= 1000)
  121.             {
  122.                 PlayerInfo[killerid][pAkSkill] += 20;
  123.                 SetPlayerSkills(killerid);
  124.             }
  125.         }
  126.  
  127.         if(reason == 31)
  128.         {
  129.             if(PlayerInfo[killerid][pM4Skill] >= 0 && PlayerInfo[killerid][pM4Skill] <= 1000)
  130.             {
  131.                 PlayerInfo[killerid][pM4Skill] += 20;
  132.                 SetPlayerSkills(killerid);
  133.             }
  134.         }
  135.     }
  136.     ////////////////////////////////////////////////////////////
  137.     if(!IgracPolicajac(killerid) && IsPlayerConnected(playerid))
  138.     {
  139.         if(killerid != INVALID_PLAYER_ID) // Valid killer, give cash+score
  140.         {
  141.             PostaviWanted(killerid, "Ubistvo", "Nepoznat");
  142.         }
  143.     }
  144.     ////////////////////////////////////////////////////////////
  145.     if(GetPlayerWantedLevel(killerid) > 6)
  146.     {
  147.         SetPlayerWantedLevel(killerid, 6);
  148.         PlayerInfo[killerid][pTrazeniLevel] = 6;
  149.     }
  150.     ////////////////////////////////////////////////////////////
  151.     if(GetPlayerWantedLevel(playerid) > 0)
  152.     {
  153.         g_NovacMinus(playerid, GetPlayerWantedLevel(playerid)*400);
  154.         SCMF(playerid, -1, ""ZUTA"[INFO] "CRVENA"Izgubili ste %d$ zbog umiranja sa wanted level-om "ZUTA"%d!", GetPlayerWantedLevel(playerid)*400, GetPlayerWantedLevel(playerid));
  155.         SetPlayerWantedLevel(playerid, 0); PlayerInfo[playerid][pTrazeniLevel] = 0;
  156.     }
  157.     ////////////////////////////////////////////////////////////
  158.     if(killerid != INVALID_PLAYER_ID && GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
  159.     {
  160.         new string[128];
  161.         format(string, sizeof(string), "~r~DB: ~w~%s (ID:%d) je uradio DriveBy nad igracem %s (ID:%d)", GetName(killerid), killerid, GetName(playerid), playerid);
  162.         AltChatPosaljiPoruku(string);
  163.     }
  164.     //==========================================================================
  165.     if(zonatime[playerid] > 0)
  166.     {
  167.         KillTimer(zonatimer[playerid]);
  168.         new id = zonaid[playerid];
  169.         GangZoneStopFlashForAll(ZonaID[id]);
  170.         PlayerTextDrawHide(playerid, klecanjetd[playerid]);
  171.         zonaid[playerid] -= 1;
  172.         zonatime[playerid] -= 1;
  173.         SCM(playerid, -1, ""CRVENA"Niste uspeli da zauzmete teritoriju, spreceni ste!");
  174.     }
  175.     ////////////////////////////////////////////////////////////
  176.     if(IsPlayerConnected(killerid) && PlayerInfo[playerid][pLevel] >= 1)
  177.     {
  178.         new string[128];
  179.         format(string,sizeof(string), "~r~AK: ~w~%s (ID:%d) je ubio igraca %s (ID:%d)", GetName(killerid), killerid, GetName(playerid), playerid);
  180.         AltChatPosaljiPoruku(string);
  181.     }
  182.     ////////////////////////////////////////////////////////////
  183.     if(gPlayerUsingLoopingAnim[playerid])
  184.     {
  185.         gPlayerUsingLoopingAnim[playerid] = 0;
  186.     }
  187.     ////////////////////////////////////////////////////////////
  188.     return 1;
  189. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top