Raised This Month: $ Target: $400
 0% 

Help on a server_cmd


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 09-24-2007 , 12:54   Re: Help on a server_cmd
Reply With Quote #3

The difference between your version and admin.sma is that the new cvar value is read inside a function called by a server command.

Commands sent with server_cmd() aren't executed immediately and that's why get_cvar_string() is reading the old value. You could try using server_exec() after server_cmd() or you could copy the workaround in admin.sma.
Lee 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 16:15.


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