Raised This Month: $ Target: $400
 0% 

Pull a Varibles current Value.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 09-06-2005 , 17:52   Pull a Varibles current Value.
Reply With Quote #1

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.
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-06-2005 , 17:56  
Reply With Quote #2

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?
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 09-06-2005 , 18:06  
Reply With Quote #3

it's not possible, thats why there are CVARs so that other plugins can use them and the variables wont reset after map change
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 09-06-2005 , 18:09  
Reply With Quote #4

you could use callfuncs or natives for this
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 09-06-2005 , 18:22  
Reply With Quote #5

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.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 09-06-2005 , 21:56  
Reply With Quote #6

Thanks. I got it
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
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 14:29.


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