AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Move all cvars to a cfg file (https://forums.alliedmods.net/showthread.php?t=225797)

HamletEagle 09-09-2013 08:53

Move all cvars to a cfg file
 
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 ?

SpaWn2KiLl 09-09-2013 09:03

Re: Move all cvars to a cfg file
 
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... :D

HamletEagle 09-09-2013 09:05

Re: Move all cvars to a cfg file
 
My mistake about the "." In my code it is an "," Ok thx,I'll try.

Edit: that was. Thx. It worked.

dark_style 10-29-2013 05:49

Re: Move all cvars to a cfg file
 
09-09-13:
Quote:

Edit: that was. Thx. It worked.


All times are GMT -4. The time now is 18:53.

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