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
#2

Problem solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)