31.08.2012, 23:47
Devia de guarda tudo certinho mas
Grava assim:
Exmplo
pawn Код:
format(var, 32, "CarModel=%d\n", DynamicCars[idx][CarModel]);fwrite(hFile, var);
format(var, 32, "CarX=%f\n",DynamicCars[idx][CarX]);fwrite(hFile, var);
format(var, 32, "CarY=%f\n", DynamicCars[idx][CarY]);fwrite(hFile, var);
format(var, 32, "CarZ=%f\n",DynamicCars[idx][CarZ]);fwrite(hFile, var);
format(var, 32, "CarAngle=%f\n", DynamicCars[idx][CarAngle]);fwrite(hFile, var);
format(var, 32, "CarColor1=%d\n",DynamicCars[idx][CarColor1]);fwrite(hFile, var);
format(var, 32, "CarColor2=%d\n", DynamicCars[idx][CarColor2]);fwrite(hFile, var);
format(var, 32, "FactionCar=%d\n",DynamicCars[idx][FactionCar]);fwrite(hFile, var);
format(var, 32, "CarType=%d\n", DynamicCars[idx][CarType]);fwrite(hFile, var);
format(var, 32, "cOwner=%d\n",DynamicCars[idx][cOwner]);fwrite(hFile, var);
format(var, 32, "cValue=%d\n",DynamicCars[idx][cValue]);fwrite(hFile, var);
format(var, 32, "cLock=%d\n",DynamicCars[idx][cLock]);fwrite(hFile, var);
format(var, 32, "cGold=%d\n",DynamicCars[idx][cGold]);fwrite(hFile, var);
format(var, 32, "cFuel=%f\n",DynamicCars[idx][cFuel]);fwrite(hFile, var);
format(var, 32, "cHealth=%f\n",DynamicCars[idx][cHealth]);fwrite(hFile, var);
Exmplo
pawn Код:
CarModel=56 // isto certo devia ficar 256
CarX=644.38342 // certo
CarY=-566.01348 // certo
CarZ=15.84822 // certo
CarAngle=297.78631 // certo
CarColor1= // devia ficar 0
CarColor2= // 0
FactionCar=25 // 0
CarType= // 0
cOwner= // 0
cValue= // 0
cLock= // 0
cGold= // 0
cFuel=0.00000 // certo
cHealth=1000.00000 // certo