thanks. i ran into another problem. here's what i did:
PHP Code:
function onPlayerEnters() {
datalog.loadvars("levels/datastuff.txt");
stat = datalog.info;
}
//#CLIENTSIDE
function onCreated() {
this.chat = format("This info: %s",stat);
}
when i run this script, the output is: "This info: 0". there's already stuff saved into this text file. datalog.info should contain a string: "test" and not the number 0. i can't seem to correctly copy variables from serverside to clientside (or vice versa).
i don't want to get rid of the CLIENTSIDE comment since i have additional functions below this that are clientside functions only.