[AJUDA] Atachei label a veiculo...
#3

pawn Код:
public LoadCarLabel()
{
    new infodoscarroslol[256];
    new Text3D:labeldocarro;
    new arrCoords[14][64];
    new strFromFile2[256];
    new File: file = fopen("Poderosos Arquivos/Carros.cfg", io_read);
    if (file)
    {
        new idx = 1;
        while (idx < sizeof(CarInfo))
        {
            fread(file, strFromFile2);
            split(strFromFile2, arrCoords, ',');
            CarInfo[idx][cModel] = strval(arrCoords[0]);
            CarInfo[idx][cLocationx] = floatstr(arrCoords[1]);
            CarInfo[idx][cLocationy] = floatstr(arrCoords[2]);
            CarInfo[idx][cLocationz] = floatstr(arrCoords[3]);
            CarInfo[idx][cAngle] = floatstr(arrCoords[4]);
            CarInfo[idx][cColorOne] = strval(arrCoords[5]);
            CarInfo[idx][cColorTwo] = strval(arrCoords[6]);
            strmid(CarInfo[idx][cOwner], arrCoords[7], 0, strlen(arrCoords[7]), 255);
            strmid(CarInfo[idx][cDescription], arrCoords[8], 0, strlen(arrCoords[8]), 255);
            CarInfo[idx][cValue] = strval(arrCoords[9]);
            CarInfo[idx][cLicense] = strval(arrCoords[10]);
            CarInfo[idx][cOwned] = strval(arrCoords[11]);
            CarInfo[idx][cLock] = strval(arrCoords[12]);
            CarInfo[idx][cGrana] = strval(arrCoords[13]);
            CarInfo[idx][cID] = totalveiculosc+idx;

            format(infodoscarroslol, sizeof(infodoscarroslol), "Carro: %d \n Dono:%s[%d] \n Placa %s ID[%d]",idx,CarInfo[idx][cOwner],CarInfo[idx][cOwned],CarInfo[idx][cLicense],CarInfo[idx][cID]);

            labeldocarro = Create3DTextLabel(infodoscarroslol,0x008080FF,CarInfo[idx][cLocationx], CarInfo[idx][cLocationy], CarInfo[idx][cLocationz],20.0,0);

            new idveiculocomprado = CarInfo[idx][cID];

            Attach3DTextLabelToVehicle(labeldocarro, idveiculocomprado, 0.0, 0.0, 2.0);


            printf("Carro: %d Dono:%s[%d] Placa %s ID[%d]",idx,CarInfo[idx][cOwner],CarInfo[idx][cOwned],CarInfo[idx][cLicense],CarInfo[idx][cID]);
            idx++;
        }
    }
    return 1;
}
Reply


Messages In This Thread
[AJUDA] Atachei label a veiculo... - by KevinsL - 29.09.2010, 23:01
Re: [AJUDA] Atachei label a veiculo... - by Gustavob - 29.09.2010, 23:09
Re: [AJUDA] Atachei label a veiculo... - by KevinsL - 29.09.2010, 23:11
Re: [AJUDA] Atachei label a veiculo... - by LeLeTe - 29.09.2010, 23:16
Re: [AJUDA] Atachei label a veiculo... - by KevinsL - 29.09.2010, 23:21
Re: [AJUDA] Atachei label a veiculo... - by brunogysin - 29.09.2010, 23:44
Re: [AJUDA] Atachei label a veiculo... - by KevinsL - 29.09.2010, 23:54
Re: [AJUDA] Atachei label a veiculo... - by ipsBruno - 30.09.2010, 00:29
Respuesta: [AJUDA] Atachei label a veiculo... - by BiieL - 30.09.2010, 00:34

Forum Jump:


Users browsing this thread: 1 Guest(s)