View Single Post
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 07-29-2013 , 18:01   Re: [INCLUDE] Autoexecconfig read and append beta
Reply With Quote #15

That's right, because windows uses the \r\n for a new line... sorry about that.

...:: TnT Edit ::...

If, in my CreateConVar I have some \n's in there, they are not properly carried over in the config.

They show up missing the // characters, like:

PHP Code:
// Use the iBots_maxfrags?
NO
YES
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
iBots_usemaxfrags "1"

// Team number for bots (2 is T, 3 is CT)
// -
// Default: "2"
// Minimum: "2.000000"
// Maximum: "3.000000"
iBots_TEAM_BOT "2"

// Utilize 'Updater' plugin to auto-update iBots when updates are published?
1=yes0=no
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
iBots_useupdater "0" 
the usemaxfrags:
PHP Code:
AutoExecConfig_CreateConVar("iBots_usemaxfrags""1""Use the iBots_maxfrags?\n0 = NO\n1 = YES"_true0.0true1.0
__________________
View my Plugins | Donate

Last edited by TnTSCS; 07-29-2013 at 18:08.
TnTSCS is offline