AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Including stuff (https://forums.alliedmods.net/showthread.php?t=123672)

TerroriZe 04-07-2010 17:57

Including stuff
 
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 :o

Afronanny 04-07-2010 21:01

Re: Including stuff
 
Quote:

Originally Posted by TerroriZe (Post 1142915)
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 :o

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)

dirtyminuth 04-07-2010 21:07

Re: Including stuff
 
Missed a paren:
http://wiki.alliedmods.net/Creating_...d_Scripting%29

Afronanny 04-07-2010 21:58

Re: Including stuff
 
Quote:

Originally Posted by dirtyminuth (Post 1143111)

Thanks. I keep forgetting that these silly auto-link generators on most forums always miss that last parenthesis.


All times are GMT -4. The time now is 12:17.

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