SA-MP Forums Archive
fopen, tag mismatch [SOLVED] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: fopen, tag mismatch [SOLVED] (/showthread.php?tid=359856)



fopen, tag mismatch [SOLVED] - Roko_foko - 15.07.2012

error:
Код:
warning 213: tag mismatch
pawn Код:
new File:f;
f=fopen("MyFolder.ini",io_write);
if(f==0)printf("ERROR at file open");//error here.
Quote:

Returns the Filehandle. 0 if failed to open file

from samp-wiki
Should the line look like this if(f==File:0) or?


Re: fopen, tag mismatch [UNSOLVED] - [MM]RoXoR[FS] - 15.07.2012

pawn Код:
if(!f) printf("ERROR at file open");



Re: fopen, tag mismatch [UNSOLVED] - ViniBorn - 15.07.2012

pawn Код:
new File:f = fopen("MyFolder.ini", io_write);
if(!f) printf("ERROR at file open");



Re: fopen, tag mismatch [UNSOLVED] - Roko_foko - 15.07.2012

Thank you guys. Rep+ from me