Raised This Month: $535 Target: $400
 133% 

Main plugin problem for Respawn mod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
impossible89
Member
Join Date: Jun 2020
Old 07-21-2022 , 06:09   Main plugin problem for Respawn mod
Reply With Quote #1

Code:
L 07/18/2022 - 00:16:45: Start of error session.
L 07/18/2022 - 00:16:45: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20220718.log")
L 07/18/2022 - 00:16:45: Player 2 is not in game.
L 07/18/2022 - 00:16:45: [AMXX] Displaying debug trace (plugin "csdm_equip.amxx", version "3.5")
L 07/18/2022 - 00:16:45: [AMXX] Run time error 10: native error (native "menu_display")
L 07/18/2022 - 00:16:45: [AMXX]    [0] csdm_equip.sma::m_SecHandler (line 818)
Attached Files
File Type: sma Get Plugin or Get Source (csdm_equip.sma - 34 views - 44.7 KB)
impossible89 is offline
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 08-02-2022 , 10:44   Re: Main plugin problem for Respawn mod
Reply With Quote #2

Looks like somebody disconnected and the secondary weapon menu couldn't find the player.

find
Code:
public m_SecHandler(id, menu, item)
and add
Code:
if ( !is_user_connected( id ) ) return;
see if it fixes it, and if it doesn't try
Code:
 	else if (g_mSecStatus)
	{
		menu_display(id, g_SecMenuID, 0)
		return PLUGIN_HANDLED
	}
->
Code:
	else if (g_mSecStatus)
	{
                if ( !is_user_connected( id ) ) return;

		menu_display(id, g_SecMenuID, 0)
		return PLUGIN_HANDLED
	}
Simply a matter of someone disconnecting before the menu shows, I guess you could use a set task and destroy it if the user is not connected, just like the way he does it with the delayed equip, but I'll leave that to someone more knowledgeable.
__________________

Last edited by deprale; 08-02-2022 at 10:47.
deprale is offline
impossible89
Member
Join Date: Jun 2020
Old 08-13-2022 , 10:12   Re: Main plugin problem for Respawn mod
Reply With Quote #3

PHP Code:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// csdm_equip.sma
//
// C:\Compiler\addons\amxmodx\scripting\csdm_equip.sma(136) : warning 213: tag mismatch
// C:\Compiler\addons\amxmodx\scripting\csdm_equip.sma(137) : warning 213: tag mismatch
// C:\Compiler\addons\amxmodx\scripting\csdm_equip.sma(138) : warning 213: tag mismatch
// C:\Compiler\addons\amxmodx\scripting\csdm_equip.sma(139) : warning 213: tag mismatch
// C:\Compiler\addons\amxmodx\scripting\csdm_equip.sma(140) : warning 213: tag mismatch
// C:\Compiler\addons\amxmodx\scripting\csdm_equip.sma(355) : warning 213: tag mismatch
// C:\Compiler\addons\amxmodx\scripting\csdm_equip.sma(396) : warning 213: tag mismatch
// C:\Compiler\addons\amxmodx\scripting\csdm_equip.sma(651) : warning 225: unreachable code
// C:\Compiler\addons\amxmodx\scripting\csdm_equip.sma(686) : warning 225: unreachable code
// C:\Compiler\addons\amxmodx\scripting\csdm_equip.sma(724) : warning 225: unreachable code
// C:\Compiler\addons\amxmodx\scripting\csdm_equip.sma(818) : warning 209: function "m_SecHandler" should return a value
// C:\Compiler\addons\amxmodx\scripting\csdm_equip.sma(820) : error 078: function uses both "return" and "return <value>"
// C:\Compiler\addons\amxmodx\scripting\csdm_equip.sma(854) : error 078: function uses both "return" and "return <value>"
//
// 2 Errors.
// Could not locate output file C:\Compiler\addons\amxmodx\scripting\compiled\csdm_equip.amx (compile failed).
//
// Compilation Time: 0,55 sec
// ----------------------------------------

Press enter to exit ... 
impossible89 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-13-2022 , 22:25   Re: Main plugin problem for Respawn mod
Reply With Quote #4

I'm not sure how you were able to generate all the tag mismatch warnings. I don't get any tag mismatch warnings.

The last three warnings will be fixed by using this:

PHP Code:
if ( !is_user_connectedid ) ) return PLUGIN_HANDLED
instead of:

PHP Code:
if ( !is_user_connectedid ) ) return; 
This is not how I would fix it but this is easier for you and it will work just fine. I won't go into detail since you didn't write the code.

The three warning 225 can be ignored. This is caused by poor coding but won't affect anything.
__________________
fysiks is offline
impossible89
Member
Join Date: Jun 2020
Old 08-15-2022 , 15:13   Re: Main plugin problem for Respawn mod
Reply With Quote #5

I will test thanks!
impossible89 is offline
impossible89
Member
Join Date: Jun 2020
Old 08-15-2022 , 17:12   Re: Main plugin problem for Respawn mod
Reply With Quote #6

and can someone in this plugin make my menu colorful and arrange the weapons the same way as in the picture the avp instead of being for vip should be made to cost 5000$
Attached Files
File Type: zip Нова папка .zip (585.1 KB, 14 views)

Last edited by impossible89; 08-15-2022 at 17:17.
impossible89 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-16-2022 , 22:52   Re: Main plugin problem for Respawn mod
Reply With Quote #7

If you have a new request, create a new thread.
__________________
fysiks 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 17:07.


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