Raised This Month: $ Target: $400
 0% 

Run time error 1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-21-2022 , 03:00   Re: Run time error 1
Reply With Quote #1

Quote:
Originally Posted by HamletEagle View Post
Please answer the question, post the file.
Nothing includes set_fail_state


And another error

Code:
L 05/20/2022 - 08:27:18: Invalid player id 77
L 05/20/2022 - 08:27:18: [AMXX] Displaying debug trace (plugin "Jailbreak_main.amxx", version "2.7.0")
L 05/20/2022 - 08:27:18: [AMXX] Run time error 10: native error (native "engclient_cmd")
L 05/20/2022 - 08:27:18: [AMXX]    [0] Jailbreak_main.sma::set_user_team (line 2949)
L 05/20/2022 - 08:27:18: [AMXX]    [1] Jailbreak_main.sma::join_menu_handle (line 2834)

There is something calling the callback functions( menu handlers and set_task call functions ) randomly within the amxmodx and not from the 3rd party plugins.

I am using the latest amxx version of dev 1.10 and Metamod v1.21p38 2018/02/11


I think this issue might because because of unregister_forward inefficiently remove a forward during its call time?


Code:
static cell AMX_NATIVE_CALL unregister_forward(AMX *amx, cell *params)
{
	int func = params[1];
	int func_id = params[2];
	int post = params[3];

	if (func >= FM_LAST_DONT_USE_ME || func < 1)
	{
		MF_LogError(amx, AMX_ERR_NATIVE, "Invalid function: %d", func);
		return 0;
	}

	void *patchAddr = NULL;

	ke::Vector<int> *peng = NULL;
	if (post)
	{
		peng = &(EnginePost[func]);
		patchAddr = EngineAddrsPost[func];
	} else {
		peng = &(Engine[func]);
		patchAddr = EngineAddrs[func];
	}
	for (size_t i = 0; i < peng->length(); ++i)
	{
		if (peng->at(i) == func_id)
		{
			peng->remove(i);
			MF_UnregisterSPForward(func_id);
			if (!peng->length() && patchAddr != NULL && func != FM_ServerDeactivate)
			{
				/* Clear out this forward if we no longer need it */
				*(void **)patchAddr = NULL;
			}
			return 1;
		}
	}

	return 0;
}
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 05-21-2022 at 03:27.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply



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 00:18.


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