This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Execute cfg via chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 14:16.


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