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

Solved console error aim pl


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
smt287
Member
Join Date: Aug 2011
Location: Anywhere
Old 07-18-2017 , 19:30   console error aim pl
Reply With Quote #1

Hi, I use this plugin on the server, and these errors come out in the console. How can I fix it?
Code:
[SM] Exception reported: Handle f40080 is invalid (error 3)
[SM] Blaming: so_adminaim.smx
[SM] Call stack trace:
[SM]   [0] CloseHandle
[SM]   [1] Line 91, so_adminaim.sp::MenuHandler
Script code;
Code:
public MenuHandler(Handle:menu, MenuAction:action, param1, param2){
	
	if (action == MenuAction_Select){
		new String: szInfo[32];
		
		GetMenuItem( menu, param2, szInfo, sizeof( szInfo ) - 1 );
		
		new iPlayer = StringToInt( szInfo );
		
		if( !IsClientInGame( iPlayer ) ){
			return;
		}
		
		aimOn[ iPlayer ] = !aimOn[ iPlayer ];
		
		CloseHandle(menu);
		
		createMenu( param1 );
	}
	else if (action == MenuAction_End){
		
		CloseHandle(menu);
	}
}
Line 91: CloseHandle(menu);
__________________

Last edited by smt287; 07-19-2017 at 07:40. Reason: Solved
smt287 is offline
0xBatuhan
Member
Join Date: Dec 2016
Location: Turkey
Old 07-18-2017 , 19:46   Re: console error aim pl
Reply With Quote #2

Try this,

PHP Code:
if(CloseHandle(menu))
{
         
menu INVALID_HANDLE;

0xBatuhan is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 07-18-2017 , 21:16   Re: console error aim pl
Reply With Quote #3

Dont close handle in the menu action select.
__________________
Neuro Toxin is offline
inklesspen
Member
Join Date: Nov 2015
Location: Russia, Moscow
Old 07-19-2017 , 05:21   Re: console error aim pl
Reply With Quote #4

Remove this line from code Handle closing in MenuAction_End
__________________
Mai inglish is veri gud!
inklesspen is offline
Send a message via Skype™ to inklesspen
smt287
Member
Join Date: Aug 2011
Location: Anywhere
Old 07-19-2017 , 07:39   Re: console error aim pl
Reply With Quote #5

Quote:
Originally Posted by 0xBatuhan View Post
Try this,

PHP Code:
if(CloseHandle(menu))
{
         
menu INVALID_HANDLE;

Don't work

Quote:
Originally Posted by inklesspen View Post
Remove this line from code Handle closing in MenuAction_End
It's work Thank you.

SOLVED
__________________
smt287 is offline
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 02:20.


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