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

Including stuff


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TerroriZe
Member
Join Date: Dec 2009
Old 04-07-2010 , 17:57   Including stuff
Reply With Quote #1

Hey ho, I got 3 quick and stupid questions:

1.) Whats the best way to include global variables from one plugin to another?
Is there a better way than ConVars?

2.) How to include global arrays from another file?

3.) Is there a way to use functions from other plugins?

Thx in advance
TerroriZe is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 04-07-2010 , 21:01   Re: Including stuff
Reply With Quote #2

Quote:
Originally Posted by TerroriZe View Post
Hey ho, I got 3 quick and stupid questions:

1.) Whats the best way to include global variables from one plugin to another?
Is there a better way than ConVars?

2.) How to include global arrays from another file?

3.) Is there a way to use functions from other plugins?

Thx in advance
Create a native with your plugin to have it return whatever variable you want to access, and possibly change it depending on how you set up the native.
More information here:

http://wiki.alliedmods.net/Creating_...eMod_Scripting)
Afronanny is offline
dirtyminuth
Senior Member
Join Date: Sep 2009
Old 04-07-2010 , 21:07   Re: Including stuff
Reply With Quote #3

Missed a paren:
http://wiki.alliedmods.net/Creating_...d_Scripting%29
dirtyminuth is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 04-07-2010 , 21:58   Re: Including stuff
Reply With Quote #4

Quote:
Originally Posted by dirtyminuth View Post
Thanks. I keep forgetting that these silly auto-link generators on most forums always miss that last parenthesis.
Afronanny is offline
Reply


Thread Tools
Display Modes

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


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