open 2 file's - 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: open 2 file's (
/showthread.php?tid=108688)
open 2 file's -
breakpaper - 15.11.2009
how can i make that he open's 2 file's?
i have now this:
pawn Код:
if(city == 2){file = fopen("/settings/houses_SF.cfg", io_read);}
it must be in the same code so not:
pawn Код:
if(city == 2){file = fopen("/settings/houses_SF.cfg", io_read);}
if(city == 2){file = fopen("/settings/houses_LS.cfg", io_read);}
Re: open 2 file's -
dirkblok - 15.11.2009
You mean this ?
pawn Код:
if(city == 2)
{
file = fopen("/settings/houses_SF.cfg", io_read);
file = fopen("/settings/houses_LS.cfg", io_read);
}
Re: open 2 file's -
Correlli - 15.11.2009
I don't think you can open 2 files at once.
Re: open 2 file's -
yom - 15.11.2009
pawn Код:
file1 = fopen("/settings/houses_SF.cfg", io_read);
file2 = fopen("/settings/houses_LS.cfg", io_read);
Re: open 2 file's -
breakpaper - 15.11.2009
thanks dirkblok!
it works!
now i gonna make my server very good!
Re: open 2 file's -
dirkblok - 15.11.2009
Quote:
Originally Posted by breakpaper
thanks dirkblok!
it works!
now i gonna make my server very good!
|
Glad it worked