27.05.2014, 13:08
(
Последний раз редактировалось Patrick; 27.05.2014 в 16:54.
)
Quote:
Why exactly would that be better in C? Seems like you've got a pretty good implementation of this very basic function right there. You aren't talking about a code function called repeatedly in the middle of a tight loop, doing vast processing. In fact I wouldn't be surprised if the overheads involved in calling a native outweighed and TINY speed advantages in this case.
|
EDIT:
GetWeapoName functions crashes, can anyone confirm this too?
pawn Код:
[18:11:54] [debug] Server crashed while executing bcnr.amx
[18:11:54] [debug] AMX backtrace:
[18:11:54] [debug] #0 native GetWeaponName () [7c3d8351] from samp-server.exe
[18:11:54] [debug] #1 0004f590 in ?? (playerid=0, newkeys=4, oldkeys=0, ... <1073741820 arguments>) at ../gamemodes/server/AntiCheat.pwn:93
[18:11:54] [debug] #2 00016588 in public OnPlayerKeyStateChange (... <3 arguments>) at D:\Bone County Cops and Robbers\pawno\include\YSI\..\YSI_Coding\..\YSI_Internal\y_cgen.inc:30
[18:11:54] [debug] Native backtrace:
[18:11:54] [debug] #0 7c3d8351 in ?? () from samp-server.exe
[18:11:54] [debug] #1 004010b6 in ?? () from samp-server.exe
[18:11:54] [debug] #2 74308d87 in ?? () from plugins\profiler.DLL
[18:11:54] [debug] #3 73eb9db7 in ?? () from plugins\crashdetect.DLL
[18:11:54] [debug] #4 73ec58ca in ?? () from plugins\crashdetect.DLL
[18:11:54] [debug] #5 73ec774f in ?? () from plugins\crashdetect.DLL
[18:11:54] [debug] #6 73ec0834 in ?? () from plugins\crashdetect.DLL
[18:11:54] [debug] #7 73ec591a in ?? () from plugins\crashdetect.DLL
[18:11:54] [debug] #8 7430d598 in ?? () from plugins\profiler.DLL
[18:11:54] [debug] #9 74308e83 in ?? () from plugins\profiler.DLL
[18:11:54] [debug] #10 0046d566 in ?? () from samp-server.exe
[18:11:54] [debug] #11 0047fade in ?? () from samp-server.exe
[18:11:54] [debug] #12 00482770 in ?? () from samp-server.exe