Raised This Month: $ Target: $400
 0% 

Help with get_pcvar_string


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 03-29-2009 , 18:33   Help with get_pcvar_string
Reply With Quote #1

What is the function of get_pcvar_string?
if they can give examples of how uses...better
__________________
alan_el_more is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-29-2009 , 18:41   Re: Help with get_pcvar_string
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?...ring&go=search
PHP Code:
new cvar_string[32]
get_pcvar_string(cvar_pointercvar_string31
__________________
fysiks is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-29-2009 , 18:42   Re: Help with get_pcvar_string
Reply With Quote #3

lets say you have the cvar
Code:
sv_testcvar "test cvar"
You would have to use a string to get what the cvar is set to.
Code:
new cvar_string[21];
get_pcvar_string( cvar_pointer, cvar_string, 20 );
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-29-2009 , 18:44   Re: Help with get_pcvar_string
Reply With Quote #4

Code:
    new YouCvarPointer;         // [...]         YouCvarPointer = register_cvar( "MyCvar", "Woot!" );         // [...]         new MyVar[ 8 ];     get_pcvar_string( YouCvarPointer, MyVar, charsmax( MyVar ) );

MyVar will contain "Woot!"
Arkshine is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 03-29-2009 , 18:47   Re: Help with get_pcvar_string
Reply With Quote #5

thanks to all but i still do not understand for which is used
__________________
alan_el_more is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-29-2009 , 18:49   Re: Help with get_pcvar_string
Reply With Quote #6

The purpose is to retrieve the value as string contained in the cvar you have created.
Arkshine is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 03-29-2009 , 18:52   Re: Help with get_pcvar_string
Reply With Quote #7

How do I get that in a cvar takes the colors and then run in a function?
__________________

Last edited by alan_el_more; 03-29-2009 at 19:09.
alan_el_more is offline
Old 03-29-2009, 19:09
alan_el_more
This message has been deleted by alan_el_more. Reason: double post
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 08:56.


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