23.11.2017, 15:19
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.
Command: https://pastebin.com/iJKXNkEi
GetWeaponNameEx:
Can someone help me?
Код:
[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
GetWeaponNameEx:
Код:
stock GetWeaponNameEx(id, name[], len) return format(name,len, "%s", GunNames[id]);