bat78 wrote:And does i have to define the text Numbers like variables?
void SaveInfo(char*FNAME)
{
FILE* file=fopen(FNAME, "wr");
if(file!=NULL)
{
fprintf(file, "First text here, use %d to make a var", var1);
}
fclose(file);
}
void SaveInfo(char*FNAME) <- custom function accepting 2 parameters?
{
FILE* file=fopen(FNAME, "wr"); <- does i have to point the file name using fname first, must be relative to game directory too?
if(file!=NULL) <- does ! is operator for "Is NOT"
{
fprintf(file, "First text here, use %d to make a var", var1); -> does fprintf, fclose, fname.. adds "f" with will mean format?
}
fclose(file);
}
Error line 2: Illegal function definition in ex213744816069441
Error line 10: Expected ;
bat78 wrote:Only completely silly person that don't spend decent time on game-editor wouldn't understand the saving for that time, thanks :p
Users browsing this forum: No registered users and 1 guest