io_read failure? What is wrong?
#1

Hey, I got a problem with this function. It doesnt seems to load in the correct values from the .cfg file. It only stays at 0 at both.

Which is not correct.

pawn Код:
public LoadStuff()
{
    new arrCoords[2][64];
    new strFromFile2[256];
    new File: file = fopen("/players/ServerSettings.cfg", io_read);
    if (file)
    {
        fread(file, strFromFile2);
        split(strFromFile2, arrCoords, '|');
        TaxMoney = strval(arrCoords[0]);
        TaxValue = strval(arrCoords[1]);
        fclose(file);
    }
    return 1;
}
Reply


Messages In This Thread
io_read failure? What is wrong? - by Blt950 - 12.06.2010, 19:48
Re: Problem with loading file - by Blt950 - 12.06.2010, 21:00

Forum Jump:


Users browsing this thread: 1 Guest(s)