[Duda] Como hacer esto...
#2

pawn Код:
new Float:Pos[4], string[100], File:file = fopen("autos.txt", io_write);
if(file)
{
    for(new i = 0; i < MAX_VEHICLES; i++)
    {
        GetVehiclePos(i, Pos[0], Pos[1], Pos[2]);
        GetVehicleZAngle(i, Pos[3]);
        model = GetVehicleModel(i);
        if(Pos[0] == 0 && Pos[1] == 0&& Pos[2] == 0) return 1;
        format(string, sizeof(string), "%d|%f|%f|%f|%f\n", model, Pos[0], Pos[1], Pos[2], Pos[3]);
        fwrite(file, string);
    }
}
Reply


Messages In This Thread
[Duda] Como hacer esto... - by OTACON - 18.08.2012, 21:36
Respuesta: [Duda] Como hacer esto... - by Bu11Sh0t - 18.08.2012, 21:50
Re: [Duda] Como hacer esto... - by DartakousLien - 19.08.2012, 01:08
Respuesta: [Duda] Como hacer esto... - by OTACON - 19.08.2012, 04:14
Re: [Duda] Como hacer esto... - by DartakousLien - 19.08.2012, 16:53
Respuesta: [Duda] Como hacer esto... - by Bu11Sh0t - 19.08.2012, 17:10
Re: [Duda] Como hacer esto... - by ELiiTEJaMzZ - 19.08.2012, 17:23

Forum Jump:


Users browsing this thread: 2 Guest(s)