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

[Help] Cvars Saving


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
waizedzzy
Member
Join Date: May 2016
Location: France
Old 02-13-2017 , 11:53   [Help] Cvars Saving
Reply With Quote #1

Hey Guys,
Could anyone explain my that why when i edit a cvar in game (for all plugins), the next map he is the same as before changed.
It's boring for me to edit the code and recompile it, could someone tell me how to save it directly when I change the cvar.

Thanks in advance, sorry for my bad english (btw didnt knew in which section i would post for help so i posted it here).
__________________
Invincible Wxx ^.^
waizedzzy is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 02-13-2017 , 12:03   Re: [Help] Cvars Saving
Reply With Quote #2

u added cvars in amxx.cfg??
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-13-2017 , 13:23   Re: [Help] Cvars Saving
Reply With Quote #3

If cvars are supposed to be changed with editing the code and recompiling, there won't be a reason for them to exist, would there?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-13-2017 , 13:27   Re: [Help] Cvars Saving
Reply With Quote #4

server.cfg?
__________________
Relaxing is offline
waizedzzy
Member
Join Date: May 2016
Location: France
Old 02-13-2017 , 13:30   Re: [Help] Cvars Saving
Reply With Quote #5

Quote:
u added cvars in amxx.cfg??
So as you say i have to edit amxx.cfg and add all plugins cvars ?

Quote:
If cvars are supposed to be changed with editing the code and recompiling, there won't be a reason for them to exist, would there?
No, actually i mean when i edit a cvar in server, after the map change or when i change map directly the cvar doesn't save and get back to the default of sma one.
__________________
Invincible Wxx ^.^
waizedzzy is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 02-13-2017 , 14:07   Re: [Help] Cvars Saving
Reply With Quote #6

Quote:
Originally Posted by waizedzzy View Post
So as you say i have to edit amxx.cfg and add all plugins cvars ?


No, actually i mean when i edit a cvar in server, after the map change or when i change map directly the cvar doesn't save and get back to the default of sma one.
yes add all cvars in amxx.cfg and restart your server then its work
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
waizedzzy
Member
Join Date: May 2016
Location: France
Old 02-13-2017 , 14:11   Re: [Help] Cvars Saving
Reply With Quote #7

Well, thank you all guys for replying. I though it were having another fast solution as adding all cvars in amxx.cfg
Thanks
__________________
Invincible Wxx ^.^
waizedzzy is offline
shehzad1234
BANNED
Join Date: Jan 2016
Location: https://t.me/pump_upp
Old 02-14-2017 , 12:15   Re: [Help] Cvars Saving
Reply With Quote #8

Np bro ;)
shehzad1234 is offline
Send a message via ICQ to shehzad1234 Send a message via AIM to shehzad1234 Send a message via Yahoo to shehzad1234
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 18:25.


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