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

Run time error 1


Post New Thread Reply   
 
Thread Tools Display Modes
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-18-2022 , 06:48   Re: Run time error 1
Reply With Quote #11

The 'message' albeit part of worldspawn is > 0 so checking if each index is connected will likely correct this.
__________________
DJEarthQuake is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 05-18-2022 , 10:45   Re: Run time error 1
Reply With Quote #12

Quote:
Originally Posted by DJEarthQuake View Post
The 'message' albeit part of worldspawn is > 0 so checking if each index is connected will likely correct this.
What are you talking about?
__________________
HamletEagle is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 05-18-2022 , 11:02   Re: Run time error 1
Reply With Quote #13

Quote:
Originally Posted by HamletEagle View Post
What are you talking about?
Probably he assumes that Nathesh get an index out of bonds error or probably he smoked weed .

I've read all his threads and posts and i can say i never seen in my life such a person , he talks english very good but the things he says are confusing and out of the subject. It almost feels like an BOT from Cs who randomly write phrases .
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-19-2022 , 07:13   Re: Run time error 1
Reply With Quote #14

Quote:
Originally Posted by HamletEagle View Post
What are you talking about?
For those of us who make maps, it's no secret that having "message" even when set-up right, when called a handful of times can easily segment fault the server. That's why maps do not use it anymore. It goes back to WON interfacing. Add Amxx to the equation and making the ent, that message, which is greater than 0, into a think, is an instant crash calling 1000x per sec. It is not out of bounds. He is just checking if each index is above zero not under 33 as well.
__________________
DJEarthQuake is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 05-19-2022 , 11:41   Re: Run time error 1
Reply With Quote #15

wtf.. What message and wherr is Nathseh in his parachute code checks should redo?

I don't get it man , he uses get_players in his code , dj, tell us the specific part he should edit.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
zXCaptainXz
Member
Join Date: May 2017
Old 05-19-2022 , 13:51   Re: Run time error 1
Reply With Quote #16

Quote:
Originally Posted by Craxor View Post
also do you have any set_fail_state() on your jb core ?
Can you answer his question? What's in your jailbreak_core.inc file?
zXCaptainXz is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-20-2022 , 05:36   Re: Run time error 1
Reply With Quote #17

I'd get segmentation fault 19 / 40 / 41 ( exit code : 139 )
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 05-20-2022 , 05:40   Re: Run time error 1
Reply With Quote #18

Quote:
Originally Posted by zXCaptainXz View Post
Can you answer his question? What's in your jailbreak_core.inc file?
Please answer the question, post the file.
__________________

Last edited by HamletEagle; 05-20-2022 at 05:55.
HamletEagle is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-21-2022 , 03:00   Re: Run time error 1
Reply With Quote #19

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
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 05-21-2022 , 03:23   Re: Run time error 1
Reply With Quote #20

Can not reiterate enough check if player is connected instead of greater than 0 on reset function.


Code:
parachute_reset(id)
if(is_user_connected(id))
{
    new parachute = g_para_ent[id];

    if(parachute > 0)
    {
        entity_set_int(parachute, EV_INT_flags, FL_KILLME);
        call_think(parachute);
    }

    g_has_parachute[id] = false;
    g_para_ent[id] = 0;
}
__________________

Last edited by DJEarthQuake; 05-21-2022 at 03:24.
DJEarthQuake is offline
Reply


Thread Tools
Display Modes

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 07:01.


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