Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=========ServerLog===========================================
- [04:40:55] [join] Ivcha has joined the server (0:192.168.8.102)
- [04:41:23] [debug] Run time error 4: "Array index out of bounds"
- [04:41:23] [debug] Attempted to read/write array element at index 65535 in array of size 100
- [04:41:23] [debug] AMX backtrace:
- [04:41:23] [debug] #0 002ced30 in IgracPolicajac (playerid=65535) at C:\Users\Pazz\Desktop\New World UP\gamemodes\NWRPUP.pwn:31452
- [04:41:23] [debug] #1 0011a5dc in ?? (... <3 arguments>) at C:\Users\Pazz\Desktop\New World UP\gamemodes\NWRPUP.pwn:7744
- [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
- [04:42:08] [debug] Run time error 4: "Array index out of bounds"
- [04:42:08] [debug] Attempted to read/write array element at index 65535 in array of size 100
- [04:42:08] [debug] AMX backtrace:
- [04:42:08] [debug] #0 002ced30 in IgracPolicajac (playerid=65535) at C:\Users\Pazz\Desktop\New World UP\gamemodes\NWRPUP.pwn:31452
- [04:42:08] [debug] #1 0011a5dc in ?? (... <3 arguments>) at C:\Users\Pazz\Desktop\New World UP\gamemodes\NWRPUP.pwn:7744
- [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
- [04:42:21] [part] Ivcha has left the server (0:1)
- //=============================================================
- IgracPolicajac(playerid)
- {
- if(PlayerInfo[playerid][pClan] == 1) <<<======Linija 31452
- {
- return 1;
- }
- else if(PlayerInfo[playerid][pLider] == 1)
- {
- return 1;
- }
- return 0;
- }
- //==============================================================
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(killerid != INVALID_PLAYER_ID)
- {
- PlayerInfo[killerid][pUbistava]++; PlayerInfo[playerid][pSmrti]++;
- ResetPlayerWeapons(playerid); ResetujVar(playerid);
- }
- IgracAnimira[playerid] = 0;
- ////////////////////////////////////////////////////////////
- if(killerid != INVALID_PLAYER_ID)
- {
- if(IgracPolicajac(killerid))
- {
- PlayerInfo[killerid][pTrazeniLevel] = 0;
- SetPlayerColor(playerid, 0x2641FEAA);
- }
- }
- //======================Skillovi============================================
- if(IsPlayerConnected(killerid))
- {
- if(reason == 22)
- {
- if(PlayerInfo[killerid][pPistSkill] >= 0 && PlayerInfo[killerid][pPistSkill] <= 1000)
- {
- PlayerInfo[killerid][pPistSkill] += 20;
- SetPlayerSkills(killerid);
- }
- }
- if(reason == 23)
- {
- if(PlayerInfo[killerid][pSilenSkill] >= 0 && PlayerInfo[killerid][pSilenSkill] <= 1000)
- {
- PlayerInfo[killerid][pSilenSkill] += 20;
- SetPlayerSkills(killerid);
- }
- }
- if(reason == 24)
- {
- if(PlayerInfo[killerid][pDesertSkill] >= 0 && PlayerInfo[killerid][pDesertSkill] <= 1000)
- {
- PlayerInfo[killerid][pDesertSkill] += 20;
- SetPlayerSkills(killerid);
- }
- }
- if(reason == 25)
- {
- if(PlayerInfo[killerid][pShotgSkill] >= 0 && PlayerInfo[killerid][pShotgSkill] <= 1000)
- {
- PlayerInfo[killerid][pShotgSkill] += 20;
- SetPlayerSkills(killerid);
- }
- }
- if(reason == 26)
- {
- if(PlayerInfo[killerid][pSawnSkill] >= 0 && PlayerInfo[killerid][pSawnSkill] <= 800)
- {
- PlayerInfo[killerid][pSawnSkill] += 20;
- SetPlayerSkills(killerid);
- }
- }
- if(reason == 27)
- {
- if(PlayerInfo[killerid][pCombSkill] >= 0 && PlayerInfo[killerid][pCombSkill] <= 1000)
- {
- PlayerInfo[killerid][pCombSkill] += 20;
- SetPlayerSkills(killerid);
- }
- }
- if(reason == 28 || reason == 32)
- {
- if(PlayerInfo[killerid][pUziSkill] >= 0 && PlayerInfo[killerid][pUziSkill] <= 800)
- {
- PlayerInfo[killerid][pUziSkill] += 20;
- SetPlayerSkills(killerid);
- }
- }
- if(reason == 29)
- {
- if(PlayerInfo[killerid][pSmgSkill] >= 0 && PlayerInfo[killerid][pSmgSkill] <= 1000)
- {
- PlayerInfo[killerid][pSmgSkill] += 20;
- SetPlayerSkills(killerid);
- }
- }
- if(reason == 30)
- {
- if(PlayerInfo[killerid][pAkSkill] >= 0 && PlayerInfo[killerid][pAkSkill] <= 1000)
- {
- PlayerInfo[killerid][pAkSkill] += 20;
- SetPlayerSkills(killerid);
- }
- }
- if(reason == 31)
- {
- if(PlayerInfo[killerid][pM4Skill] >= 0 && PlayerInfo[killerid][pM4Skill] <= 1000)
- {
- PlayerInfo[killerid][pM4Skill] += 20;
- SetPlayerSkills(killerid);
- }
- }
- }
- ////////////////////////////////////////////////////////////
- if(!IgracPolicajac(killerid) && IsPlayerConnected(playerid))
- {
- if(killerid != INVALID_PLAYER_ID) // Valid killer, give cash+score
- {
- PostaviWanted(killerid, "Ubistvo", "Nepoznat");
- }
- }
- ////////////////////////////////////////////////////////////
- if(GetPlayerWantedLevel(killerid) > 6)
- {
- SetPlayerWantedLevel(killerid, 6);
- PlayerInfo[killerid][pTrazeniLevel] = 6;
- }
- ////////////////////////////////////////////////////////////
- if(GetPlayerWantedLevel(playerid) > 0)
- {
- g_NovacMinus(playerid, GetPlayerWantedLevel(playerid)*400);
- SCMF(playerid, -1, ""ZUTA"[INFO] "CRVENA"Izgubili ste %d$ zbog umiranja sa wanted level-om "ZUTA"%d!", GetPlayerWantedLevel(playerid)*400, GetPlayerWantedLevel(playerid));
- SetPlayerWantedLevel(playerid, 0); PlayerInfo[playerid][pTrazeniLevel] = 0;
- }
- ////////////////////////////////////////////////////////////
- if(killerid != INVALID_PLAYER_ID && GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
- {
- new string[128];
- format(string, sizeof(string), "~r~DB: ~w~%s (ID:%d) je uradio DriveBy nad igracem %s (ID:%d)", GetName(killerid), killerid, GetName(playerid), playerid);
- AltChatPosaljiPoruku(string);
- }
- //==========================================================================
- if(zonatime[playerid] > 0)
- {
- KillTimer(zonatimer[playerid]);
- new id = zonaid[playerid];
- GangZoneStopFlashForAll(ZonaID[id]);
- PlayerTextDrawHide(playerid, klecanjetd[playerid]);
- zonaid[playerid] -= 1;
- zonatime[playerid] -= 1;
- SCM(playerid, -1, ""CRVENA"Niste uspeli da zauzmete teritoriju, spreceni ste!");
- }
- ////////////////////////////////////////////////////////////
- if(IsPlayerConnected(killerid) && PlayerInfo[playerid][pLevel] >= 1)
- {
- new string[128];
- format(string,sizeof(string), "~r~AK: ~w~%s (ID:%d) je ubio igraca %s (ID:%d)", GetName(killerid), killerid, GetName(playerid), playerid);
- AltChatPosaljiPoruku(string);
- }
- ////////////////////////////////////////////////////////////
- if(gPlayerUsingLoopingAnim[playerid])
- {
- gPlayerUsingLoopingAnim[playerid] = 0;
- }
- ////////////////////////////////////////////////////////////
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement