Quote:
Originally Posted by Chandler
Load the arrays first
PHP Code:
temp.playerData = new TStaticVar(); temp.playerData.loadVars("thistextfile.arc"); for (temp.currentData: temp.playerData.getDynamicVarNames()) if (temp.currentData.starts("inv")) temp.foundData = temp.currentData;
Then you would like to load the temp.foundData, with whatever. I think that should work
|
I really don't get this
TEXT FILE BELOW
[TEXTFILE]
inv_item=Name,Icon,ID
inv_item=Name,Icon,ID
inv_weap=Name,Icon,ID
[/TEXTFILE]
I load those vars from the text file into an object!
NOW,
OBJECT WITH BOLD
[OBJECT]
inv_item=
Name,Icon,ID
inv_item=
Name,Icon,ID
inv_weap=
Name,Icon,ID
[/OBJECT]
Everything that's bolded and underlined, is what I'm trying to get from what I loaded into the object!
I loaded inv_item=blah into the object, now I'm trying to get "blah" back.