Acquiring a #define from another plugin
Hi,
I'm scripting something for TSRP and am calling the itemamount function from HarbuRP_Talkarea.amxx. The 3 parameters are "id","itemid","table". The ID is the player id, no problem. The table is money, no problem again. But the ItemID I want is in a #define in HarbuRP_Talkarea.amxx. I could just get the value of it (Which I believe is 14) and manually use PHP Code:
Is there anyway I can get the #define from the plugin, put it into a variable in my plugin and then use it in callfunc_push_int? The define is PHP Code:
The code I wanna use it in is PHP Code:
+Karma for helpfullness -JFeldon |
Re: Acquiring a #define from another plugin
This is how I would do it.
I will create a forward that will execute after the plugins have been loaded in the main plugin that holds the defines. PHP Code:
PHP Code:
|
Re: Acquiring a #define from another plugin
Cool thanks. +karma :D
|
| All times are GMT -4. The time now is 05:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.