Server can't start with stock
#5

Another problem..

my public saves now



someone knows the reason?
look at line break :>

Quote:

SaveFrakCars()
{
new write;
new File: data;
new string[100];
for(new i; i < 800; i++)
{
if(CarInfo[i][cFraktion] > 0)
{
format(string, sizeof(string), "%d,%f,%f,%f,%f,%d,%d,%d,%s\n",
CarInfo[i][cModel],
CarInfo[i][cX],
CarInfo[i][cY],
CarInfo[i][cZ],
CarInfo[i][cA],
CarInfo[i][cC1],
CarInfo[i][cC2],
CarInfo[i][cFraktion],
CarInfo[i][cName]);
if(write == 0) {
data = fopen("fahrzeuge.cfg", io_write);
write = 1;
}
else {
data = fopen("fahrzeuge.cfg", io_append);
}
fwrite(data, string);
fclose(data);
}
}
}

Reply


Messages In This Thread
fwrite, fopen - by Siedler - 13.09.2011, 18:48
Re: Server can't start with stock - by Tigerkiller - 13.09.2011, 19:33
AW: Server can't start with stock - by Siedler - 13.09.2011, 19:56
Re: Server can't start with stock - by [MWR]Blood - 13.09.2011, 20:01
AW: Server can't start with stock - by Siedler - 14.09.2011, 15:10
Re: AW: Server can't start with stock - by Kaperstone - 14.09.2011, 15:13
AW: Server can't start with stock - by Siedler - 14.09.2011, 15:15
Re: Server can't start with stock - by Kaperstone - 14.09.2011, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)