26.03.2012, 12:35
i am currently adding stuff to my server can anyone help me please,
The code is line 1512 to 1536 can anyone tell me why I am getting this expression is assumed zero?
(1512 -- 1523) : error 029: invalid expression, assumed zero
(1523 -- 1524) : error 029: invalid expression, assumed zero
(1527) : error 029: invalid expression, assumed zero
Code:
this is what i keep getting is an error that resorts to this
The code is line 1512 to 1536 can anyone tell me why I am getting this expression is assumed zero?
(1512 -- 1523) : error 029: invalid expression, assumed zero
(1523 -- 1524) : error 029: invalid expression, assumed zero
(1527) : error 029: invalid expression, assumed zero
Code:
Код:
public SaveDynamicCars() { new idx = 1; new File: file2; while (idx < sizeof(DynamicCars)) { new coordsstring[126]; format(coordsstring, sizeof(coordsstring), "%d|%f|%f|%f|%f|%d|%d|%d|%d|%s|%s|%d|%d|%d\n", DynamicCars[idx][CarModel], DynamicCars[idx][CarX], DynamicCars[idx][CarY], DynamicCars[idx][CarZ], DynamicCars[idx][CarAngle], DynamicCars[idx][CarColor1], DynamicCars[idx][CarColor2], DynamicCars[idx][FactionCar], DynamicCars[idx][CarType], if(idx == 1) { file2 = fopen("Cars/carspawns.cfg", io_write); } else { file2 = fopen("Cars/carspawns.cfg", io_append); } fwrite(file2, coordsstring); idx++; fclose(file2); } return 1; }