Raised This Month: $12 Target: $400
 3% 

[ANY] Report to Forums


Post New Thread Reply   
 
Thread Tools Display Modes
lyric
Veteran Member
Join Date: Sep 2012
Old 04-08-2013 , 18:19   Re: [ANY] Report to Forums
Reply With Quote #281

just tried to report a player and guess who's back?

Code:
L 04/08/2013 - 18:18:01: [SM] Native "GetClientAuthString" reported: Client index 0 is invalid
L 04/08/2013 - 18:18:01: [SM] Displaying call stack trace for plugin "reporttoforum.smx":
L 04/08/2013 - 18:18:01: [SM]   [0]  Line 697, C:\Users\SavSin\Downloads\reporttoforum.sp::TargetMenuHandler()
"Report To Forums Beta" (1.1.6-Beta) by SavSin
__________________
lyric is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-08-2013 , 18:59   Re: [ANY] Report to Forums
Reply With Quote #282

Quote:
Originally Posted by lyric View Post
just tried to report a player and guess who's back?

Code:
L 04/08/2013 - 18:18:01: [SM] Native "GetClientAuthString" reported: Client index 0 is invalid
L 04/08/2013 - 18:18:01: [SM] Displaying call stack trace for plugin "reporttoforum.smx":
L 04/08/2013 - 18:18:01: [SM]   [0]  Line 697, C:\Users\SavSin\Downloads\reporttoforum.sp::TargetMenuHandler()
"Report To Forums Beta" (1.1.6-Beta) by SavSin
Not sure why it is doing that... The native itself adds the userid of the client to the menu when selected i get the GetClientOfUserid using the native and it should return the correct user. Possibly a bug from within the native it self?
Doc-Holiday is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-08-2013 , 19:07   Re: [ANY] Report to Forums
Reply With Quote #283

They probably left the server, which is exactly why userids are used for async code.
__________________
asherkin is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-08-2013 , 19:10   Re: [ANY] Report to Forums
Reply With Quote #284

Quote:
Originally Posted by asherkin View Post
They probably left the server, which is exactly why userids are used for async code.
Then i shall simply check if the client id is greater than 0 prior to performing any tasks using it. Thanks

Edit: Assuming there is no way to grab the players information from their user id is there?

Last edited by Doc-Holiday; 04-08-2013 at 19:15.
Doc-Holiday is offline
lyric
Veteran Member
Join Date: Sep 2012
Old 04-08-2013 , 20:02   Re: [ANY] Report to Forums
Reply With Quote #285

The theroy of the player not being online wasnt my case here. they were on the server and still are lol.
__________________
lyric is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-09-2013 , 03:52   Re: Re: [ANY] Report to Forums
Reply With Quote #286

Quote:
Originally Posted by lyric View Post
The theroy of the player not being online wasnt my case here. they were on the server and still are lol.
I'm going to pay with a custom add targets to menu function that might resolve the issue of them leaving prior to being reported
Doc-Holiday is offline
lyric
Veteran Member
Join Date: Sep 2012
Old 04-09-2013 , 13:37   Re: [ANY] Report to Forums
Reply With Quote #287

Quote:
Originally Posted by Doc-Holiday View Post
I'm going to pay with a custom add targets to menu function that might resolve the issue of them leaving prior to being reported
yeah the userid method that arkshine mentioned might be a better solution since it turned out he was lagged out and timed out on the server making it appear he was still there
__________________
lyric is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-09-2013 , 13:48   Re: [ANY] Report to Forums
Reply With Quote #288

Quote:
Originally Posted by lyric View Post
arkshine
__________________
asherkin is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-09-2013 , 13:54   Re: Re: [ANY] Report to Forums
Reply With Quote #289

Quote:
Originally Posted by lyric View Post
yeah the userid method that arkshine mentioned might be a better solution since it turned out he was lagged out and timed out on the server making it appear he was still there
That method is what I currently use. But in order to get the players info I need the client id which is what is needed up when they leave
Doc-Holiday is offline
maxolahird
Veteran Member
Join Date: Dec 2012
Old 04-10-2013 , 00:01   Re: [ANY] Report to Forums
Reply With Quote #290

Getting error with this :S

Quote:
L 04/10/2013 - 00:46:23: [SM] Native "SQL_EscapeString" reported: Invalid database Handle 0 (error: 4)
L 04/10/2013 - 00:46:23: [SM] Displaying call stack trace for plugin "reporttoforum.smx":
L 04/10/2013 - 00:46:23: [SM] [0] Line 1434, E:\SourceMod Plugins\Public\Report To Forums\scripting\reporttoforum.sp:arsePlaye rName()
L 04/10/2013 - 00:46:23: [SM] [1] Line 677, E:\SourceMod Plugins\Public\Report To Forums\scripting\reporttoforum.sp::TargetMenu Handler()
maxolahird 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 16:35.


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