Raised This Month: $51 Target: $400
 12% 

how to get key and value


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hzqst
Senior Member
Join Date: Jul 2008
Old 07-22-2008 , 12:17   how to get key and value
Reply With Quote #1

such as
"targetname" "aaa"
"target" "bbb"
example
i want to get a value from the key"targetname"
hzqst is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-22-2008 , 12:28   Re: how to get key and value
Reply With Quote #2

Are you making a CVAR?
Like:
PHP Code:
register_cvar("targetname""aaa"
If so, try this:
PHP Code:
static TargetName[32]
get_cvar_string("targetname"TargetName31
For PCVARs use get_pcvar_string() instead.
__________________
hleV is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 07-22-2008 , 12:32   Re: how to get key and value
Reply With Quote #3

http://forums.alliedmods.net/showthread.php?t=28918
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit 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 00:44.


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