* VN1st Why when I use this code
<!--parser:xtscript-->
var $info=<xt:include file="/xt/me-ola/*"/>
print $info
<!--/parser:xtscript-->

Copy code

it did not get the full contents of the file.

I know if I use this code it would be better
<!--parser:xtscript-->
var $info = call source $file=/xt/me-ola/file
print $info
<!--/parser:xtscript-->

Copy code

but I want it taken out one random file
2015-04-03 06:29 · (0)
* Graham * VN1st You cannot "include" into a variable
You have to be able to xt include files that contain xtscript
so xt includes are parsed before or after xtscript
There was another reason to do with misuse or server loops but I cannot remember exactly what

<!--parser:xtscript-->
print <xt:include file="/xt/me-ola/*"/>
<!--/parser:xtscript-->

Copy code
2015-04-03 09:56 (edited 2015-04-03 10:07 by Graham ) · (0)
* tiaxgame * VN1st you use code

<!--parser:xtscript-->
var $info = xt:include file="/xt/me-ola/*"
print <$info
/>
<!--/parser:xtscript-->

Copy code
2015-04-03 14:38 (edited 2015-04-03 14:40 by tiaxgame ) · (0)

Online: Guests: 1