Hi everyone,
I've got two quick questions. When using loadVars, do the values loaded need to be assigned to other variables? In other words, is it sufficient to code
loadVars ("game.save", "high scores");
or must one instead code
loadVars ("game.save", "high scores");
strcpy(somevariable, oneoftheloadedscores);
In other words, does loadVars load every variable in the file into memory or does it merely make them ready for assignment to other variables?
*******************************
Also, I read on the forum somewhere that we need to make sure that string variables are initialized. I know what it means to initialize (give a variable some value when its created), but I'm not sure how to do this with strings. With integers, it's a simple
int number = 0;
But what is the "int" equivalent for strings?
Thanks in advance!