open 2 file's
#1

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);}
Reply
#2

You mean this ?

pawn Код:
if(city == 2)
{
file = fopen("/settings/houses_SF.cfg", io_read);
file = fopen("/settings/houses_LS.cfg", io_read);
}
Reply
#3

I don't think you can open 2 files at once.
Reply
#4

pawn Код:
file1 = fopen("/settings/houses_SF.cfg", io_read);
file2 = fopen("/settings/houses_LS.cfg", io_read);
Reply
#5

thanks dirkblok!
it works!
now i gonna make my server very good!
Reply
#6

Quote:
Originally Posted by breakpaper
thanks dirkblok!
it works!
now i gonna make my server very good!
Glad it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)