View Single Post
  #4  
Old 07-28-2007, 05:12 AM
Cherrykao Cherrykao is offline
Banned
Join Date: Apr 2007
Posts: 37
Cherrykao is on a distinguished road
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.
Reply With Quote