[Ajuda] Erro no formato
#1

Devia de guarda tudo certinho mas

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);
Grava assim:

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
Reply


Messages In This Thread
Erro no formato - by CJoao - 31.08.2012, 23:47
Respuesta: Erro no formato - by Truck - 31.08.2012, 23:50
Re: Respuesta: Erro no formato - by CJoao - 01.09.2012, 02:12
Re: Erro no formato - by CJoao - 01.09.2012, 02:22
Re: Erro no formato - by CJoao - 01.09.2012, 13:06
Re: Erro no formato - by hard_dalzot - 01.09.2012, 14:03
Re: Erro no formato - by paulor - 01.09.2012, 14:51

Forum Jump:


Users browsing this thread: 1 Guest(s)