View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-21-2024 , 19:46   Re: Execute cfg via chat
Reply With Quote #8

That's because it's currently passing the whole chat argument through to the command line. You need to remove the first character in the same way that it was done for the comparison. I.e. add the indexing of the szArg array in the server_cmd() function like this:

Code:
server_cmd( "exec %s.cfg" , szArg[1] );
__________________
fysiks is offline