View Single Post
  #1  
Old 04-10-2007, 09:16 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Loading Variables into Objects

Ok, here's what Im' doing, I'm loading variables from a text file into an object then I'm using a for each loop to go through each var starting with "whatever" like this"

PHP Code:
blah = new TStaticVar();
blah.loadVars("thistextfile.arc"
Now my questions is do I do this...

PHP Code:
for (igetstringkeys("inv_")); 
Or this....

PHP Code:
for (igetstringkeys("blah.inv_")); 
Forgive me if it's a really simple or unintelligent questions, I just sort of started understanding objects today and I figured this would be somewhat of a cakewalk. :P

(What I'm doing is creating an item system using text files.
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote