Hi,
I am new to Game Editor, I have developed a multi-level game and I have written several functions inside Global Editor.
Everthing looks fine. Recently I added a function to write the User defined variable into a file.
When I look at the function list in global editor I can see all of my functions that I have written.
Then I added the following function to read the file. I get warning for each fgets function ( Conversion from Char array to *Char) and I confirm the action. Then when I look at function list in Global Editor I can not find any of my functions. All of my functions disappear from the list.
void ReadData()
{
FILE *f2;
char bline[20];
if ( f2 != NULL )
{
f2 = fopen("data.sr","r");
fgets(&bline,20,f2);
fgets(&bline,20,f2);
Totals =atof(bline);
fgets(&bline,20,f2);
fgets(&bline,20,f2);
plife= atoi(bline);
fclose(f2);
}
}
I know the problem sits between the keyboard and the chair so I do appreciate your help.