Raised This Month: $ Target: $400
 0% 

[HELP] How to export variables?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JoooN
BANNED
Join Date: Jul 2013
Location: Ban List :P
Old 07-30-2013 , 14:12   [HELP] How to export variables?
Reply With Quote #1

Hi, so I wanna know how to export 2 or more variable with a small script?
Can someone give an example how to do that?
JoooN is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-30-2013 , 14:29   Re: [HELP] How to export variables?
Reply With Quote #2

Export what? What kind of script?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
JoooN
BANNED
Join Date: Jul 2013
Location: Ban List :P
Old 07-30-2013 , 14:31   Re: [HELP] How to export variables?
Reply With Quote #3

Like export something that displays in HLSW's (for example) server variable list..
JoooN is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-30-2013 , 14:32   Re: [HELP] How to export variables?
Reply With Quote #4

You didn't answer either question
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
JoooN
BANNED
Join Date: Jul 2013
Location: Ban List :P
Old 07-30-2013 , 23:48   Re: [HELP] How to export variables?
Reply With Quote #5

Quote:
Originally Posted by YamiKaitou View Post
You didn't answer either question
For example imagine you have specinfo plugin (http://forums.alliedmods.net/showthread.php?p=484967), and it exports variable specinfo_version so it will be displayed with HLSW or any other server variable scanner. I need a small plugin that exports multiple variables. You got it?
JoooN is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-31-2013 , 03:46   Re: [HELP] How to export variables?
Reply With Quote #6

Those are cvars from specific plugin.
Are you writing a plugin ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
JoooN
BANNED
Join Date: Jul 2013
Location: Ban List :P
Old 07-31-2013 , 04:22   Re: [HELP] How to export variables?
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
Those are cvars from specific plugin.
Are you writing a plugin ?
Yeah I wanna write a plugin but idk how to export those variables :/
JoooN is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-31-2013 , 05:07   Re: [HELP] How to export variables?
Reply With Quote #8

Then this is a scripting help question and you posted in wrong forum.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-31-2013 , 07:48   Re: [HELP] How to export variables?
Reply With Quote #9

You can use this on plugin_init()

PHP Code:
 register_cvar("my_var""Test"FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_SPONLY
__________________
Kia is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-31-2013 , 07:59   Re: [HELP] How to export variables?
Reply With Quote #10

Quote:
Originally Posted by JoooN View Post
Ok transfer to script help forum plz
I have no access on this board, i can't

Quote:
Originally Posted by Kia View Post
You can use this on plugin_init()

PHP Code:
 register_cvar("my_var""Test"FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_SPONLY
+ you have to set string so if value changes it is updated.
See timeleft plugin.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 15:59.


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