12.06.2010, 19:48
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.
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;
}