SA-MP Forums Archive
[debug] OnPlayerTakeDamage - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [debug] OnPlayerTakeDamage (/showthread.php?tid=622111)



[debug] OnPlayerTakeDamage - TaylorShade - 18.11.2016

server.log
Код:
[00:08:01] [debug] AMX backtrace:
[00:08:01] [debug] #0 00032030 in public OnPlayerTakeDamage () at C:\Users\stefan\Desktop\Fusion Gaming NEW\Compiler\include\YSI\y_hooks/impl.inc:2373
[00:08:02] [debug] Run time error 5: "Invalid memory access"
[00:08:02] [debug] AMX backtrace:
[00:08:02] [debug] #0 00032030 in public OnPlayerTakeDamage () at C:\Users\stefan\Desktop\Fusion Gaming NEW\Compiler\include\YSI\y_hooks/impl.inc:2373
[00:08:02] [connection] incoming connection: 24.135.208.205:64669 id: 3
[00:08:02] [debug] Run time error 5: "Invalid memory access"
[00:08:02] [debug] AMX backtrace:
[00:08:02] [debug] #0 00032030 in public OnPlayerTakeDamage () at C:\Users\stefan\Desktop\Fusion Gaming NEW\Compiler\include\YSI\y_hooks/impl.inc:2373
[00:08:05] [debug] Run time error 5: "Invalid memory access"
[00:08:05] [debug] AMX backtrace:
[00:08:05] [debug] #0 00032030 in public OnPlayerTakeDamage () at C:\Users\stefan\Desktop\Fusion Gaming NEW\Compiler\include\YSI\y_hooks/impl.inc:2373
[00:08:06] [connection] 213.149.104.76:56297 requests connection cookie.
[00:08:07] [connection] incoming connection: 213.149.104.76:56297 id: 3
[00:08:07] [join] Gepa_Kusa has joined the server (3:213.149.104.76)
[00:08:22] [debug] Run time error 5: "Invalid memory access"
[00:08:22] [debug] AMX backtrace:
[00:08:22] [debug] #0 00032030 in public OnPlayerTakeDamage () at C:\Users\stefan\Desktop\Fusion Gaming NEW\Compiler\include\YSI\y_hooks/impl.inc:2373
[00:08:34] [debug] Run time error 5: "Invalid memory access"
[00:08:34] [debug] AMX backtrace:
[00:08:34] [debug] #0 00032030 in public OnPlayerTakeDamage () at C:\Users\stefan\Desktop\Fusion Gaming NEW\Compiler\include\YSI\y_hooks/impl.inc:2373
impl.inc
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
	P:2("Hooks_OnPlayerTakeDamage called: %d, %d, %f, %d, %d", playerid, issuerid, Float:amount, weaponid, bodypart);
	new
		end   = _:YSI_g_sCallbackEnd[ALS_OnPlayerTakeDamage],
		start = _:YSI_g_sCallbackStart[ALS_OnPlayerTakeDamage],
		ret = ALS_R_PlayerTakeDamage;
	while (start++ != end)
	{
		#emit PUSH.S bodypart
		#emit PUSH.S weaponid
		#emit PUSH.S amount
		#emit PUSH.S issuerid
		#emit PUSH.S playerid
		#emit PUSH.C     16
		#emit CONST.alt  YSI_g_sCallbackAddresses
		#emit LOAD.S.pri start
		//#emit INC.pri
		//#emit STOR.S.pri start
		#emit LIDX
		#emit MOVE.alt
		#emit LCTRL      6
		#emit ADD.C      24
		#emit PUSH.pri
		#emit MOVE.pri
		#emit SCTRL      6
		#emit MOVE.alt
		#emit CONST.pri  0xFFFFFFFE
		#emit AND
		#emit PUSH.pri
		#emit LOAD.S.pri ret
		#emit AND
		#emit POP.alt
		#emit OR
		#emit STOR.S.pri ret
		if (ret < 0) return ret + 1;
	}
	return ret;//line 2373
}
#if defined _ALS_OnPlayerTakeDamage
	#undef OnPlayerTakeDamage
#else
	#define _ALS_OnPlayerTakeDamage
#endif
#define OnPlayerTakeDamage S@@_OnPlayerTakeDamage
HOOK_FORWARD<PlayerTakeDamage>



Re: [debug] OnPlayerTakeDamage - TaylorShade - 19.11.2016

anyone?