- Code: Select all
int numArray[10];
How can I save everything? Do I need to use an alternative method?
Thanks in advance for any help!
int numArray[10];
Lacotemale wrote:However, saveVars only works for global variables
//saveVars
data[0]=someValue1;
data[1]=someValue2;
//etc...
//loadVars
someValue1 = data[0];
someValue2 = data[1];
//etc...
fwrite(&charDataArray, sizeof(struct charData),1, WRITE);
if(fscanf(READ, "%d", &i) == 1)
{
gold = (READ, "%d", &i);
}
Lacotemale wrote:I set gold = i but now it just crashes GameEditor. :/
Lacotemale wrote:I was running the Windows version on Linux... but only now did I try the Linux version and it works!!! XD
Users browsing this forum: No registered users and 1 guest