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

Plugin Command Won't Work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
QOOOOOOOOQ
Senior Member
Join Date: Dec 2012
Old 09-19-2014 , 00:32   Plugin Command Won't Work
Reply With Quote #1

Along with giving me these error logs, it says "Unknown Command: sm_opp" in console, and does nothing when the command is displayed. I ran PrintToChatAll() after each Format(), so I know the command is already being executed and properly cycling through every client in the server for each team, but for some reason it won't display the panel. The IsClientInGame() gets an client indexes from an array of everyone's stored userids, I suppose if a userid equals exactly 0, the index will return 0? Regardless, I have no clue why that would stop the entire command from completing.
PHP Code:
L 09/18/2014 22:59:31: [SMNative "IsClientInGame" reportedClient index 0 is invalid
L 09
/18/2014 22:59:31: [SMDisplaying call stack trace for plugin "opp.smx":
L 09/18/2014 22:59:31: [SM]   [0]  Line 73G:\SourcePawn\sources\opp.sp::Command_OrderedPlayerPanel() 
Spoiler
QOOOOOOOOQ is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 09-19-2014 , 01:36   Re: Plugin Command Won't Work
Reply With Quote #2

If an error happens, the entire callback is aborted. This is how Sourcemod works. You need to account for these potential errors and appropriately stop these errors from occurring. For example, don't run a client index of 0 through IsClientInGame().
__________________

Last edited by ddhoward; 09-19-2014 at 01:38.
ddhoward 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 10:27.


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