AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] How to export variables? (https://forums.alliedmods.net/showthread.php?t=222167)

JoooN 07-30-2013 14:12

[HELP] How to export variables?
 
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?

YamiKaitou 07-30-2013 14:29

Re: [HELP] How to export variables?
 
Export what? What kind of script?

JoooN 07-30-2013 14:31

Re: [HELP] How to export variables?
 
Like export something that displays in HLSW's (for example) server variable list..

YamiKaitou 07-30-2013 14:32

Re: [HELP] How to export variables?
 
You didn't answer either question

JoooN 07-30-2013 23:48

Re: [HELP] How to export variables?
 
Quote:

Originally Posted by YamiKaitou (Post 2002342)
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?

ConnorMcLeod 07-31-2013 03:46

Re: [HELP] How to export variables?
 
Those are cvars from specific plugin.
Are you writing a plugin ?

JoooN 07-31-2013 04:22

Re: [HELP] How to export variables?
 
Quote:

Originally Posted by ConnorMcLeod (Post 2002643)
Those are cvars from specific plugin.
Are you writing a plugin ?

Yeah I wanna write a plugin but idk how to export those variables :/

ConnorMcLeod 07-31-2013 05:07

Re: [HELP] How to export variables?
 
Then this is a scripting help question and you posted in wrong forum.

JoooN 07-31-2013 07:00

Re: [HELP] How to export variables?
 
Quote:

Originally Posted by ConnorMcLeod (Post 2002675)
Then this is a scripting help question and you posted in wrong forum.

Ok transfer to script help forum plz

Kia 07-31-2013 07:48

Re: [HELP] How to export variables?
 
You can use this on plugin_init()

PHP Code:

 register_cvar("my_var""Test"FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_SPONLY



All times are GMT -4. The time now is 15:59.

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