View Single Post
  #3  
Old 12-11-2005, 08:24 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
PHP Code:
object.loadvars(path); 
members.loadvars("levels/blah/something.txt");

--CONTENTS OF SOMETHING.TXT--
stuff=3
arf=8
hello="Hi there!"
omg=Yellow,Blue,Red

members.stuff would be 3
members.arf would be 8
members.hellow would be 'Hi there!'
members.omg would be an array containing 'Yellow,' 'Blue,' and 'Red.'

You can get the list of variables it loaded with object.getstringkeys("members");
I don't recall if you need a . after members or not. :/
Reply With Quote