SA-MP Forums Archive
file function: - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: file function: (/showthread.php?tid=141457)



file function: - legodude - 13.04.2010

fopen("name.txt", io_read);

is it possible to do:
fopen("%s.txt", io_read,VARIABLE);

or somthing like that?




Re: file function: - ZeRo_HUN - 13.04.2010

pawn Код:
new szDir[ 64 ];
format( szDir, sizeof szDir, "%s.txt", VARIABLE );
fopen( szDir, io_read );



Re: file function: - legodude - 13.04.2010

thx!