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);
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
format(var, 32, "CarX=%f\n",DynamicCars[idx][CarX]);fwrite(hFile, var);
wtf ? O que nгo esta certo?
Veja: pawn Код:
|
CarModel=56 <---------- isto devia tar 562 e ta 52
CarX=644.38342
CarY=-566.01348
CarZ=15.84822
CarAngle=297.78631
CarColor1=
CarColor2=
FactionCar=25 <-------- devia tar 255 e ta 25
CarType=
cOwner=
cValue= <---------- Supostamente devia tar cValue=0 mas nao ta a gravar direito nгo intendo porque
cLock=
cGold=
cFuel=0.00000
cHealth=1000.00000
DynamicCars[idx][CarColor1] = 0;
DynamicCars[idx][CarColor2] = 0;
DynamicCars[idx][FactionCar] = 255; <-------- devia tar 255 e ta 25
DynamicCars[idx][CarType] = 0;
DynamicCars[idx][cOwner] = 0;
DynamicCars[idx][cValue] = 0; <---------- Supostamente devia tar cValue=0 mas nao ta a gravar direito nгo intendo porque
DynamicCars[idx][cLock] = 0;
DynamicCars[idx][cGold] = 0;
format(var, 32, "CarModel=%d\r\n", DynamicCars[idx][CarModel]);fwrite(hFile, var);
format(var, 32, "CarX=%f\r\n",DynamicCars[idx][CarX]);fwrite(hFile, var);
format(var, 32, "CarY=%f\r\n", DynamicCars[idx][CarY]);fwrite(hFile, var);
format(var, 32, "CarZ=%f\r\n",DynamicCars[idx][CarZ]);fwrite(hFile, var);
format(var, 32, "CarAngle=%f\r\n", DynamicCars[idx][CarAngle]);fwrite(hFile, var);
format(var, 32, "CarColor1=%d\r\n",DynamicCars[idx][CarColor1]);fwrite(hFile, var);
format(var, 32, "CarColor2=%d\r\n", DynamicCars[idx][CarColor2]);fwrite(hFile, var);
format(var, 32, "FactionCar=%d\r\n",DynamicCars[idx][FactionCar]);fwrite(hFile, var);
format(var, 32, "CarType=%d\r\n", DynamicCars[idx][CarType]);fwrite(hFile, var);
format(var, 32, "cOwner=%d\r\n",DynamicCars[idx][cOwner]);fwrite(hFile, var);
format(var, 32, "cValue=%d\r\n",DynamicCars[idx][cValue]);fwrite(hFile, var);
format(var, 32, "cLock=%d\r\n",DynamicCars[idx][cLock]);fwrite(hFile, var);
format(var, 32, "cGold=%d\r\n",DynamicCars[idx][cGold]);fwrite(hFile, var);
format(var, 32, "cFuel=%f\r\n",DynamicCars[idx][cFuel]);fwrite(hFile, var);
format(var, 32, "cHealth=%f\r\n",DynamicCars[idx][cHealth]);fwrite(hFile, var);