if , else if , else .. in rotation.txt ..need help
Maybe xp_config should compares with "conf/fn1.cfg" instead "fn1.cfg"?
it depends on what value you assign to xp_config. starting with some version (2.0?), it's not necessary to specify cfg folder in xp_config, unless you put your cfg to a different location than default one (conf subdir of excessiveplus dir).
Yes, but if your config located in default conf dir ("conf/cfgname.cfg"), you can load it by "load cfgname". And xp_config will be automatically changed to "conf/cfgname.cfg".
well, if you manually set xp_config to a value without subdir, eg 'cfgname.cfg', it will remain as it is, regardless of whether cfg is located in conf subdir or excessiveplus dir. so, it still depends on the way you have set it.
well couldn't figure it out, so just used another var instead. seems to work, but thanks for the help here.
Hard to figure out what you wanted to do because the syntax was illogical.
If you wanted to put config into hostname in posted (long already) rotation code it will need another condition set in every name that was defined there. If maps are specified in the same condition - you will have rotations further multiplied (x4 configs).
Try as it was suggested (xp_config == "conf/name.cfg") cause that what's displaying when checking its value in console.
My thinking is the problem is because xp_config is assigned a string value which it currently doesn't support.
Yes, unfortunately, string comparison is not possible in pre 2.2 versions.
Yes, I realize the code was errored. Just wanted to show the basic setup for it.
A working xp_config check call line in the if statement is all I was asking for, may just have confused everyone.
example of what should but doesn't work. It just busts through even though and loads q3dm8 like you had default.cfg running. My thinking is the problem is because xp_config is assigned a string value which it currently doesn't support.
if ( xp_config == sample.cfg ) {
/say works
q3dm8
} else {
/say fail
q3dm0
}