08.03.2013, 22:25
Como disse em cima, esta callback аs vezes manda-me o servidor a baixo.
Alguйm ajuda ?
Alguйm ajuda ?
pawn Код:
public
SaveDynamicCars ( )
{
new
File: file2 = fopen ( "Frag_Scriptfiles/Cars/carspawns.cfg" , io_write ) ,
coordsstring [ 512 ] ,
DynamicCarsIndex ,
idx
;
DynamicCarsIndex = sizeof ( DynamicCars ) ;
while (idx < DynamicCarsIndex )
{
format(
coordsstring, sizeof(coordsstring), "%d|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%d|%f|%d|%d|%d|%d|%d|%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],
DynamicCars[idx][CarPrice],
DynamicCars[idx][CarOwned],
DynamicCars[idx][cTrunkGun1],
DynamicCars[idx][cTrunkAmmo1],
DynamicCars[idx][cTrunkGun2],
DynamicCars[idx][cTrunkAmmo2],
DynamicCars[idx][cTrunkGun3],
DynamicCars[idx][cTrunkAmmo3],
DynamicCars[idx][cTrunkGun4],
DynamicCars[idx][cTrunkAmmo4],
DynamicCars[idx][cTrunkGun5],
DynamicCars[idx][cTrunkAmmo5],
DynamicCars[idx][cTrunkGun6],
DynamicCars[idx][cTrunkAmmo6],
DynamicCars[idx][Gasolina],
DynamicCars[idx][Gasoleo],
DynamicCars[idx][mod1],
DynamicCars[idx][mod2],
DynamicCars[idx][mod3],
DynamicCars[idx][mod4],
DynamicCars[idx][mod5],
DynamicCars[idx][mod6],
DynamicCars[idx][mod7],
DynamicCars[idx][mod8],
DynamicCars[idx][mod9],
DynamicCars[idx][mod10],
DynamicCars[idx][mod11],
DynamicCars[idx][mod12],
DynamicCars[idx][mod13],
DynamicCars[idx][mod14],
DynamicCars[idx][mod15],
DynamicCars[idx][mod16],
DynamicCars[idx][mod17],
DynamicCars[idx][paintjob],
DynamicCars[idx][CarroStand],
DynamicCars[idx][NeonRosa],
DynamicCars[idx][NeonAzul],
DynamicCars[idx][NeonBranco],
DynamicCars[idx][NeonAmarelo],
DynamicCars[idx][NeonVermelho],
DynamicCars[idx][NeonVerde],
DynamicCars[idx][NeonLigado],
DynamicCars[idx][Bateria],
DynamicCars[idx][Lataria],
DynamicCars[idx][Kilometros],
DynamicCars[idx][Metros],
DynamicCars[idx][Travado],
DynamicCars[idx][Policia],
DynamicCars[idx][Taxi],
DynamicCars[idx][Deposito],
DynamicCars[idx][Multas],
DynamicCars[idx][Multado]
) ;
fwrite(file2, coordsstring);
idx++;
}
fclose(file2);
return 1;
}