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

[REQ] set_pcvar_string


  
 
 
Thread Tools Display Modes
Author Message
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 11-17-2006 , 13:07   [REQ] set_pcvar_string
#1

http://forums.alliedmods.net/showthread.php?t=26593&#3

sry,I'm bring up old tipic.

Code:
use_pCvar()
{
   new pcvar = register_cvar("amx_cvar","123")
 
   get_pcvar_string(pcvar,....)
   get_pcvar_string(pcvar,....)
 
   // but set is:
   set_cvar_string("amx_cvar", "111")
   set_cvar_string("amx_cvar", "222")
   set_cvar_string("amx_cvar", "333")
}
although set_pcvar_string wouldn't get any speed increase
but should let's clear and easy to use when you are set & get
one more times.
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako
BAILOPAN
Join Date: Jan 2004
Old 11-18-2006 , 00:40   Re: [REQ] set_pcvar_string
#2

In fact, this will be implemented (correctly) in 1.77, and all of the pcvar natives will be getting a quick rewrite to get around idiosyncrasies. Since you brought it up, I'll keep the topic open so I can post the revision here.
__________________
egg
BAILOPAN is offline
jopmako
Senior Member
Join Date: Jul 2006
Location: QQ:331537639
Old 11-18-2006 , 04:55   Re: [REQ] set_pcvar_string
#3

gj to AMXX Dev Team.
__________________
QQ31537639
jopmako is offline
Send a message via MSN to jopmako
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 01-25-2007 , 23:53   Re: [REQ] set_pcvar_string
#4

This is fixed in revision 3261

set_pcvar_string actually does have a speed increase over set_cvar_string
__________________
fyren sucks
sawce is offline
 



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:05.


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