Talk:Scripts:Modified admin script

From BF2 Technical Information Wiki
Revision as of 06:15, 8 February 2006 by DarkPepe (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

I'm new to Python, so I might've missed something here, but this line (around line 637):

mapListFileParts = host.rcon_invoke( 'mapList.configFile' ).split( '/' );

Causes this script to fail on my Windows machine.
Changing it to this:

mapListFileParts = host.rcon_invoke( 'mapList.configFile' ).split( '\\' );

Fixes it for me..

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox