PDA

View Full Version : loadvariablesnum


biba
07-08-2002, 05:14 PM
hi!

i have an problem with the ,i think, easy loadvariablenum thing.
i made an data.txt with:

thevariable=10


and in the firstframe i have:

loadVariablesNum("data.txt", 0);


now the problem:
of course it doesen't work :D
if i look at the loaded variables in the player, then
there is this variable loaded but not like i wrote it in the file.
it is loaded like :

Variable _level0.thevariable = "10"


so how can i get rid of the " ?

da biba

sumul
07-08-2002, 06:16 PM
All the data is loaded in as variables and strings. You have to use:


_level0.thevariable = Number(_level0.thevariable);
Good luck.