AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Pull a Varibles current Value. (https://forums.alliedmods.net/showthread.php?t=17683)

mysticssjgoku4 09-06-2005 17:52

Pull a Varibles current Value.
 
How can I get the current variable value from lets say
Code:
new cuff[32]
Which is located in the cuffmod.amxx plugin.
Pull the current variable value, and set it as a new variable inside my plugin.
Code:
public callforth() { /* gets variable */ new iscuffed[32] = cuff[31] }
????

Thanks. Muchly Appreciated.

Hawk552 09-06-2005 17:56

I don't get it. You mean an inter-plugin variable? Or something as simple as a global variable which can be used with all functions in a plugin?

GHW_Chronic 09-06-2005 18:06

it's not possible, thats why there are CVARs so that other plugins can use them and the variables wont reset after map change

Greenberet 09-06-2005 18:09

you could use callfuncs or natives for this

XxAvalanchexX 09-06-2005 18:22

Yes, if you have access to the cuffmod.amxx source you can add a native which returns the value of cuff and then use callfunc to access it.

mysticssjgoku4 09-06-2005 21:56

Thanks. I got it :)


All times are GMT -4. The time now is 14:29.

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