How to load a .ini file when the server starts.
#5

cheers, don't have to use dini now, although i don't get this error here.

undefined symbol "unformat"
pawn Код:
stock LoadPayPhones(FileName[])
{
    if(!fexist(FileName)) return 0;

    new
        File:PPhone,
        Float:PLoc[3],
        pTotal,
        Line[60];

    PPhone = fopen(FileName, io_read);
    while(fread(PPhone , Line))
    {
        unformat(Line, "p<|>fff", PLoc[0], PLoc[1], PLoc[2]); //line 202
        CreatePayPhone(PLoc[0], PLoc[1], PLoc[2]);

        pTotal++;
    }
    fclose(PPhone);
    printf("%i Pay Phones loaded", pTotal);
    return pTotal;
}
Reply


Messages In This Thread
How to load a .ini file when the server starts. - by Haydz - 15.01.2011, 02:04
Re: How to load a .ini file when the server starts. - by coole210 - 15.01.2011, 04:25
Re: How to load a .ini file when the server starts. - by Haydz - 15.01.2011, 04:51
Re: How to load a .ini file when the server starts. - by [L3th4l] - 15.01.2011, 05:16
Re: How to load a .ini file when the server starts. - by Haydz - 15.01.2011, 05:27
Re: How to load a .ini file when the server starts. - by [L3th4l] - 15.01.2011, 05:37
Re: How to load a .ini file when the server starts. - by Haydz - 15.01.2011, 05:49
Re: How to load a .ini file when the server starts. - by [L3th4l] - 15.01.2011, 06:04

Forum Jump:


Users browsing this thread: 1 Guest(s)