[Ajuda] Sistema de carros vip!
#1

Bom, os carros carregam mas o problema й que eles todos nascem um em cima do outro nгo na posiзгo que eu setei.. PQP?

Coordenadas originais:
pawn Код:
Ninguem,0,565,-2016.3944,-267.0179,34.9506,88.1866,0,0,5000000,0

Ninguem,0,565,-2016.5364,-261.2593,34.9477,89.9987,0,0,5000000,0

Ninguem,0,565,-2016.6346,-256.2819,34.9466,90.0352,0,0,5000000,0

Ninguem,0,565,-2016.7045,-250.5117,34.9505,90.4554,0,0,5000000,0

Ninguem,0,565,-2016.6481,-245.0851,34.9546,89.8507,0,0,5000000,0

Ninguem,0,565,-2016.5012,-239.5454,34.9477,90.7672,0,0,5000000,0

Ninguem,0,565,-2016.7350,-233.9110,34.9449,91.1902,0,0,5000000,0

Ninguem,0,565,-2016.6466,-228.5365,34.9450,89.0371,0,0,5000000,0

Ninguem,0,565,-2016.4275,-222.9736,34.9509,90.6357,0,0,5000000,0

Ninguem,0,565,-2016.4773,-217.4597,34.9452,89.8255,0,0,5000000,0

Ninguem,0,565,-2016.3225,-212.1796,34.9458,89.4952,0,0,5000000,0

Ninguem,0,565,-2016.2290,-206.6763,34.9400,90.2015,0,0,5000000,0

Ninguem,0,565,-2016.3116,-201.1626,34.9459,89.9058,0,0,5000000,0

Ninguem,0,565,-2016.2904,-195.5080,34.9441,88.4505,0,0,5000000,0

Ninguem,0,565,-2016.2668,-190.0019,34.9512,89.0878,0,0,5000000,0

Ninguem,0,565,-2016.5212,-184.4635,34.9460,90.3613,0,0,5000000,0

Ninguem,0,565,-2016.4851,-178.7920,34.9467,88.9190,0,0,5000000,0

Ninguem,0,565,-2016.3553,-173.4067,34.9465,88.0855,0,0,5000000,0

Ninguem,0,565,-2016.2719,-168.0864,34.9474,89.8773,0,0,5000000,0

Ninguem,0,565,-2016.1711,-162.4950,34.9406,88.9829,0,0,5000000,0
Como fica:
pawn Код:
Ninguem,0,565,-2016.394409,-267.017913,34.950599,88.186599,0,0,5000000,0

,0,565,-2016.394409,-267.017913,34.950599,88.186599,0,0,5000000,0
Ninguem,0,565,-2016.536376,-261.259307,34.947700,89.998703,0,0,5000000,0

,0,565,-2016.536376,-261.259307,34.947700,89.998703,0,0,5000000,0
Ninguem,0,565,-2016.634643,-256.281890,34.946601,90.035202,0,0,5000000,0

,0,565,-2016.634643,-256.281890,34.946601,90.035202,0,0,5000000,0
Ninguem,0,565,-2016.704467,-250.511703,34.950500,90.455398,0,0,5000000,0

,0,565,-2016.704467,-250.511703,34.950500,90.455398,0,0,5000000,0
Ninguem,0,565,-2016.648071,-245.085098,34.954601,89.850700,0,0,5000000,0

,0,565,-2016.648071,-245.085098,34.954601,89.850700,0,0,5000000,0
Ninguem,0,565,-2016.501220,-239.545394,34.947700,90.767196,0,0,5000000,0

,0,565,-2016.501220,-239.545394,34.947700,90.767196,0,0,5000000,0
Ninguem,0,565,-2016.734985,-233.910995,34.944900,91.190200,0,0,5000000,0

,0,565,-2016.734985,-233.910995,34.944900,91.190200,0,0,5000000,0
Ninguem,0,565,-2016.646606,-228.536499,34.944999,89.037101,0,0,5000000,0

,0,565,-2016.646606,-228.536499,34.944999,89.037101,0,0,5000000,0
Ninguem,0,565,-2016.427490,-222.973602,34.950901,90.635696,0,0,5000000,0

,0,565,-2016.427490,-222.973602,34.950901,90.635696,0,0,5000000,0
Ninguem,0,565,-2016.477294,-217.459701,34.945201,89.825500,0,0,5000000,0

,0,565,-2016.477294,-217.459701,34.945201,89.825500,0,0,5000000,0
Stock de carregamento de carros:
pawn Код:
stock CarregarCarroVip()
{
    new Coord[11][64],virgula[256],idx = 1, File: file = fopen("VIPS/Carros.ini", io_read);
    if (file)
    {
        while(idx < sizeof(CarroInfo))
        {
            fread(file, virgula);
            split(virgula, Coord, ',');
            strmid(CarroInfo[idx][cDono], Coord[0], 0, strlen(Coord[0]), 255);
            CarroInfo[idx][cTemDono] = strval(Coord[1]);
            CarroInfo[idx][cModelo] = strval(Coord[2]);
            CarroInfo[idx][cX] = floatstr(Coord[3]);
            CarroInfo[idx][cY] = floatstr(Coord[4]);
            CarroInfo[idx][cZ] = floatstr(Coord[5]);
            CarroInfo[idx][cA] = floatstr(Coord[6]);
            CarroInfo[idx][cCor1] = strval(Coord[7]);
            CarroInfo[idx][cCor2] = strval(Coord[8]);
            CarroInfo[idx][cPreco] = strval(Coord[9]);
            CarroInfo[idx][cCofre] = strval(Coord[10]);
            idx++;
        }
    }
    return 1;
}
ajuda plz
Reply


Messages In This Thread
Sistema de carros vip! - by Tony_Rodrigues - 16.08.2012, 04:21
Re: Sistema de carros vip! - by Tony_Rodrigues - 16.08.2012, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)