Error last kills
#1

Hello guys, I have a problem with my command where I use to see all my kills and deaths I get this error in server_log and on server says: SERVER: Unknown command.

Код:
[18:13:19] [debug] Run time error 4: "Array index out of bounds"
[18:13:19] [debug] AMX backtrace:
[18:13:19] [debug] #0 00189bb8 in GetWeaponNameEx (id=255, name[]=@015ac334 "Combat Shotgun", len=126) at D:\gamemode\gamemodes\exgaming.pwn:24232
[18:13:19] [debug] #1 001fae04 in public cmd_last (playerid=1, params[]=@0157052c "kills neg 153") at D:\gamemode\gamemodes\exgaming.pwn:31324
[18:13:19] [debug] #2 native CallLocalFunction () from samp03svr
[18:13:19] [debug] #3 00039f0c in public OnPlayerCommandText (playerid=1, cmdtext[]=@015704dc "/last kills neg 153") at D:\gamemode\pawno\include\zcmd.inc:108
Command: https://pastebin.com/iJKXNkEi

GetWeaponNameEx:
Код:
stock GetWeaponNameEx(id, name[], len) return format(name,len, "%s", GunNames[id]);
Can someone help me?
Reply


Messages In This Thread
Error last kills - by RedGun2015 - 23.11.2017, 15:19
Re: Error last kills - by pollo97 - 23.11.2017, 19:17
Re: Error last kills - by RedGun2015 - 24.11.2017, 15:42
Re: Error last kills - by pollo97 - 24.11.2017, 17:18
Re: Error last kills - by RedFusion - 24.11.2017, 19:07
Re: Error last kills - by RedGun2015 - 26.11.2017, 18:42

Forum Jump:


Users browsing this thread: 1 Guest(s)