Check if native exists?
I have written a plugin to compliment DOD gungame (v2.00B3.7). For convenience of my plugin I created a native in the gungame_base so I could retreive a value (ggn_get_level).
So, my question is: Is there a way to find out if my native exists so that if someone without my version of gungame_base and gungame.inc can still use it? Effectively I want to do this: PHP Code:
|
Re: Check if native exists?
Have you tried with :
native_filter(const name[], index, trap) when name is "ggn_get_level", and trap is 0 ? |
Re: Check if native exists?
Code:
#if defined ggn_get_level |
Re: Check if native exists?
I think Emp's solution would be the easiest and would only require a local compile to execute successfully.
I think I will forego the compatibility I was seeking as my plugin will not be put on many servers (if more than one). Thanks for the effort anyways. |
| All times are GMT -4. The time now is 01:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.