This is my code:
- Code: Select all
unsigned px = 0;
FILE *f = fopen("C:/ct.txt","r+");
fwrite(&px,"x",10,f);
fclose(f);
And the error:
Incompatible types:Cannot convert from "const * char" to "unsigned"
What can i do for fix it?
unsigned px = 0;
FILE *f = fopen("C:/ct.txt","r+");
fwrite(&px,"x",10,f);
fclose(f);
int px = 0;
FILE * f = fopen("C:\\ct.txt","w");
fwrite(&px,1,1,f);
fclose(f);
makslane wrote:You can create files only inside the game folder.
makslane wrote:Security.
int px = 100;
FILE *f = fopen("ct.txt", "r+");
fwrite(&px, ymouse, sizeof(px), f);
fclose(f);
d `Ě €°g €°g °g €ăÇ €°g €°g °g °Č €°g °g Xnż s ˙˙˙˙ €ăÇ H ř H ř L ř č‹Â řÔÉ ¬ż ¬ż čě ŕsż ąĆ ŕĘÉ čüĂ 0şŔ °cĚ đ/É đż ČoČ
fprintf(f,"%d,",&ymouse);
Users browsing this forum: No registered users and 1 guest