Load a file from another file
#3

If i put the code you will understand
pawn Код:
stock LoadMaps()
{
    new string[256];
    new File:Handler=fopen("Maps.l",io_read);
    while(fread(Handler,string))
    {
        new str[256];
        format(str,256,"%s.m",string);
        if(!fexist(str))
        {
            printf("ERROR: I can't open file: %s",str);
            break;
        }
        //blabla
    }
    fclose(Handler);
    return 1;
}
file Maps.l:
PHP код:
Test 
And in console:
PHP код:
[22:11:29ERRORI can't open file: Test
.m 
Reply


Messages In This Thread
Load a file from another file - by ppanlie - 30.08.2010, 04:42
Re: Load a file from another file - by Backwardsman97 - 30.08.2010, 04:56
Re: Load a file from another file - by ppanlie - 30.08.2010, 05:08
Re: Load a file from another file - by Voldemort - 30.08.2010, 07:08
Re: Load a file from another file - by Simon - 30.08.2010, 07:24

Forum Jump:


Users browsing this thread: 1 Guest(s)