Raised This Month: $32 Target: $400
 8% 

Move all cvars to a cfg file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-09-2013 , 08:53   Move all cvars to a cfg file
Reply With Quote #1

So...I have this code:
Spoiler

I made this cfg for that plugins cvars not be edited from amxx.cfg but from file.cfg
The file appear in configs folder and contain all the cvars but I can't get it executed.What I'm doing wrong ?

Last edited by HamletEagle; 09-09-2013 at 09:05.
HamletEagle is offline
SpaWn2KiLl
Member
Join Date: Aug 2012
Old 09-09-2013 , 09:03   Re: Move all cvars to a cfg file
Reply With Quote #2

PHP Code:
server_cmd("exec %s".hk_File
you have a "." betwen the parameters

You must put "%s" insinde quotes... like this:
PHP Code:
server_cmd("exec ^"%s^"",hk_File

Put a debug message in he file... edit and put this line > echo "File executed" and see if the server executes it...
__________________

Last edited by SpaWn2KiLl; 09-09-2013 at 09:04.
SpaWn2KiLl is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-09-2013 , 09:05   Re: Move all cvars to a cfg file
Reply With Quote #3

My mistake about the "." In my code it is an "," Ok thx,I'll try.

Edit: that was. Thx. It worked.

Last edited by HamletEagle; 09-09-2013 at 09:11.
HamletEagle is offline
Old 10-29-2013, 05:18
LordOfNothing
This message has been deleted by LordOfNothing. Reason: nvm
dark_style
Senior Member
Join Date: Jul 2009
Location: Bulgaria
Old 10-29-2013 , 05:49   Re: Move all cvars to a cfg file
Reply With Quote #4

09-09-13:
Quote:
Edit: that was. Thx. It worked.
__________________



dark_style is offline
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:46.


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