Raised This Month: $ Target: $400
 0% 

Solved change register_cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
notahacker
Member
Join Date: Jan 2015
Old 03-16-2017 , 02:21   change register_cvar
Reply With Quote #1

Hello

Code:
public plugin_init() 
{ ...

enable = register_cvar("st_match","1");

...}

in a public(), i'm having to change it to 0 by " server_cmd( "st_match 0"); ".
if i write " enable = 0; ", it crashes the server.

How do i change it to 0 without going through server_cmd?

Thanks

Last edited by notahacker; 03-16-2017 at 05:51.
notahacker is offline
 


Thread Tools
Display Modes

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 17:52.


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