Raised This Month: $ Target: $400
 0% 

Function Headers


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 05-15-2012 , 15:27   Re: Function Headers
Reply With Quote #4

So if i wanted to grab functions from another plugin (powers defined in a seperate amxx from the main class) i'd write them all public and call them regularly?

i.e.
Code:
Class: powers
public pwr_money(id){ cs_set_user_money(id, moneySet()) }
Then call it from......
Code:
Class: base
public plugin_init(){ pwr_money(15) } 
public moneySet(){ return get_pcvar_num(money_cvar) }
or should i make that stock and include powers?
This is kind of what i'm trying to accomplish, i'm just trying to figure out the best way to have two plugins communicate.

Last edited by Liverwiz; 05-15-2012 at 15:32.
Liverwiz is offline
 



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 00:19.


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