Meta

Započeo 3agle, Februar 07, 2018, 20:44:14 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Moja
Detaljan opis problema: Baca crashdetect u server logu na sljedece:
Slike/video/kod:
   if(!strcmp(PlayerInfo[killerid][ImeZrtve], GetName(playerid), true))
   {
   new String[200];
   format(String,sizeof(String),"|Hitman| %s je izvrsio ubojstvo na %s i pokupio iznos od %d$",GetName(killerid),GetName(playerid),PlayerInfo[playerid][CijenaGlave]);
   OrgMsg(8, COLOR_ZUTA, String);
   PlayerInfo[killerid][ImaZrtvu] = 0;
   format(PlayerInfo[killerid][ImeZrtve],24,"Niko");
   rap_Plus(killerid,PlayerInfo[playerid][CijenaGlave]);
   PlayerInfo[playerid][ImaMetu] = 0;
   PlayerInfo[playerid][Meta] = 0;
   format(PlayerInfo[playerid][ImeMete],24,"Niko");
   PlayerInfo[playerid][CijenaGlave] = 0;
   }

baca gresku na liniji:
if(!strcmp(PlayerInfo[killerid][ImeZrtve], GetName(playerid), true))


ERROR:
[15:02:02] [debug] Run time error 4: "Array index out of bounds"
[15:02:02] [debug] AMX backtrace:
[15:02:02] [debug] #0 003de990 in ?? (... <3 arguments>) at C:\Users\Desktop\rp\gamemodes\a.pwn:7750
[15:02:02] [debug] #1 0000f390 in public FIXES_OnPlayerDeath (playerid=0, killerid=65535, reason=54) at C:\Users\Desktop\a\pawno\include\YSI\internal\y_dohooks.inc:735
[15:02:02] [debug] #2 00002374 in public OnPlayerDeath (playerid=0, killerid=65535, reason=54) at C:\Users\Desktop\a\pawno\include\fixes.inc:2364

Imas li prije ovoga if ( killerid != INVALID_PLAYER_ID ) { }


bilo je lijepo dok je trajalo.