Raised This Month: $32 Target: $400
 8% 

[ENGINE] get_msg_origin Crash Bug AGAIN :(


  
 
 
Thread Tools Display Modes
Author Message
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 10-25-2004 , 19:03   [ENGINE] get_msg_origin Crash Bug AGAIN :(
#1

I swear I fixed this last time. But I guess not as the crash bug with get_msg_origin seems to have cropped up again. Thank you Bailopan and JGHG for helping me figure this one out. But, do I certainly feel stupid for supposedly fixing it the last time... (Watch it happen another time though :-P)

messages.cpp
Code:
static cell AMX_NATIVE_CALL get_msg_origin(AMX *amx, cell *params)
{
	if (!inhook) {
		MF_RaiseAmxError(amx, AMX_ERR_NATIVE);
		return 0;
	}

	cell *cAddr = MF_GetAmxAddr(amx, params[1]);

	if (msgDest >= MSG_PVS && msgDest <= MSG_PAS_R) {
		vec3_t vRet = (Vector)msgOrigin;
		cAddr[0] = amx_ftoc(vRet.x);
		cAddr[1] = amx_ftoc(vRet.y);
		cAddr[2] = amx_ftoc(vRet.z);
	} else {
		cAddr[0] = 0;
		cAddr[1] = 0;
		cAddr[2] = 0;
	}

	return 1;
}
DS is offline
BAILOPAN
Join Date: Jan 2004
Old 10-25-2004 , 19:09  
#2

Okay, we will see this time ;]
Thanks
__________________
egg
BAILOPAN is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode