Raised This Month: $ Target: $400
 0% 

Determining debug status


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
akysiev
Junior Member
Join Date: Mar 2006
Location: Earth
Old 03-22-2006 , 13:56   Determining debug status
Reply With Quote #1

I've always wondered, is there a way to determine within a script whether or not the script is being run in debug mode?
akysiev is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-22-2006 , 17:51  
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?go=func&id=225

Code:
 get_plugin ( index,filename[],len1,name[],len2,version[],len3,author[],len4,status[],len5 )

Maybe?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
BAILOPAN
Join Date: Jan 2004
Old 03-22-2006 , 19:49  
Reply With Quote #3

yup, that's right. or getting the plugin flags.

HINT: if you need to know whether your plugin is in debug mode, you're doing something wrong ;)
__________________
egg
BAILOPAN is offline
akysiev
Junior Member
Join Date: Mar 2006
Location: Earth
Old 03-22-2006 , 20:30  
Reply With Quote #4

Thanks! I'd just rather output debug messages and execute test queries only when in debug mode. I know I could do that with a simple little preprocessor directive but now that I know how to do it this way,
akysiev is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-22-2006 , 20:47  
Reply With Quote #5

Code:
if(plugin_flags() & AMX_FLAG_DEBUG) {   // }
I believe that's what bail was talking about.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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:38.


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