05.10.2012, 12:27
you can do it like this:
then you save those three strings.
Then at load,
you just use split with the character 'x' , and you use floatstr(); with the 3 results from the split for each vehicle.+
pawn Code:
new vehiclepos[3][64];
format(vehiclepos[0],64,"%fx%fx%fx",posx,posy,posz);
format(vehiclepos[1],64,"%fx%fx%fx",posx,posy,posz);
format(vehiclepos[2],64,"%fx%fx%fx",posx,posy,posz);
Then at load,
you just use split with the character 'x' , and you use floatstr(); with the 3 results from the split for each vehicle.+