13.02.2017, 11:17
error
It Gives Me This In Server Log
Code hightlight line 13357
It Gives Me This In Server Log
Code:
[18:36:30] [debug] Run time error 4: "Array index out of bounds" [18:36:30] [debug] Attempted to read/write array element at index 65535 in array of size 1000 [18:36:30] [debug] AMX backtrace: [18:36:30] [debug] #0 00101798 in public OnPlayerDeath (playerid=0, killerid=65535, reason=54) at D:\RPG V3 EDITED\gamemodes\gtarg.pwn:13966 [18:36:30] [debug] #1 000f947c in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=3.30000, weaponid=54, bodypart=3) at D:\RPG V3 EDITED\gamemodes\gtarg.pwn:13357
Code:
if(PlayerInfo[killerid][pPaintKills] == 190) { PlayerInfo[killerid][pPaintRank] = 14; Update(killerid, pPaintRankx); PlayerInfo[killerid][pCash] += 700000; Update(killerid, pCashx); GivePlayerCash(killerid, 500000); PlayerInfo[killerid][pExp] += 10; Update(killerid, pRP); PlayerInfo[playerid][pPremiumPoints] += 7; Update(playerid, pPremiumPointsx); SCM(playerid, COLOR_GREEN, "Xep hang tang! Ban bay gio la Distinguished Master Guardian."); SCM(playerid, COLOR_GREEN, "Ban nhan duoc $700.000, 10 RP va 7 PP(vip xu)"); format(rankz, sizeof(rankz), "Distinguished Master Guardian"); PlayerInfo[killerid][pRankName] = rankz; Update(killerid, pRankNamex); }