Problem(error/warning): Clear script ali izbacuje debug
Dio skripte: [pawn]
if(reason == 0) { deathreason = "Rucno"; }
else if(reason == 36 || reason == 35 || reason == 40 || reason == 16) { deathreason = "Eksplozija"; }
else if(reason == 18 || reason == 37) { deathreason = "Zapaljen"; }
else if(reason == 51) { deathreason = "Eksplozija"; }
else if(reason == 50) { deathreason = "Ubistvo Elisom"; }
else { GetWeaponName(reason, deathreason, sizeof(deathreason)); }
format(killstring, sizeof(killstring),"![Death]: %s[ID:%d] je ubio igraca %s[ID:%d] - Vrsta: %s", Ime_Igraca(killerid),killerid, Ime_Igraca(playerid),playerid, deathreason);
StaffPoruka(0xC96666FF, killstring);[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
[11:16:26] [debug] Run time error 4: "Array index out of bounds"
[11:16:26] [debug] Accessing element at index 65535 past array upper bound 149
[11:16:26] [debug] AMX backtrace:
[11:16:26] [debug] #0 0028c83c in ?? (... <3 arguments>) at D:\SAMP MODOVI\ZIRRON COMMUNITY\gamemodes\ZCRoleplay.pwn:27139
[11:16:26] [debug] #1 0000994c in public OnPlayerDeath (playerid=2, killerid=65535, reason=255) at D:\SAMP MODOVI\ZIRRON COMMUNITY\pawno\include\YSI\y_hooks/impl.inc:753
Slika/video ingame problema(obavezno ako je ingame problem): ne
koristi trazilicu, milion ovakvih tema