Jump to content
  • 0

Problema Text.


Quasar

Question

Problemă: Am facut un sistem de plate cu 3dtextlabel pentru vehicule , faza e ca daca ies de pe server si intru iar dispare textul insa ramane salvat in baza ex LS-97-EFL , am incercat la loadcar sa-l pun asa

     LoadCar();
    for(new h = carsonserver; h < sizeof(CarInfo); h++)
    {
        AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
        LoadComponents(h);
        format(TextCar, sizeof(TextCar), "%s-%s-%s", CarInfo[thiscar][cPlate1], CarInfo[thiscar][cPlate2], CarInfo[thiscar][cPlate3]);
        TextUpCar[h] = Create3DTextLabel(TextCar, 0x33AAFFFF , 0.0, 0.0, 0.0, 25, 0, 1);
        Attach3DTextLabelToVehicle(TextUpCar[h], h, 0.0, 0.0, 0.1);
    }


Apare textul pe masina dar dispare cel de la case
Ce ai încercat să faci: Nu stiu ce sa fac.
Erori/atentionari: Nu am erori.
Cod sursă: -
Imagini: http://imgur.com/a/gE4aX
Precizări: Multumesc.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
LoadCar();
    for(new z = carsonserver; z < sizeof(CarInfo); z++)
    {
        AddStaticVehicleEx(CarInfo[z][cModel],CarInfo[z][cLocationx],CarInfo[z][cLocationy],CarInfo[z][cLocationz]+1.0,CarInfo[z][cAngle],CarInfo[z][cColorOne],CarInfo[z][cColorTwo],60000);
        LoadComponents(z);
        format(TextCar, sizeof(TextCar), "%s-%s-%s", CarInfo[z][cPlate1], CarInfo[z][cPlate2], CarInfo[z][cPlate3]);
        TextUpCar[z] = Create3DTextLabel(TextCar, 0x33AAFFFF , 0.0, 0.0, 0.0, 25, 0, 1);
        Attach3DTextLabelToVehicle(TextUpCar[z], z, 0.0, 0.0, 0.1);
    }

 

Link to comment
Share on other sites

  • 0
On 8/19/2017 at 9:48 PM, BuNiCu-RP said:

LoadCar();
    for(new z = carsonserver; z < sizeof(CarInfo); z++)
    {
        AddStaticVehicleEx(CarInfo[z][cModel],CarInfo[z][cLocationx],CarInfo[z][cLocationy],CarInfo[z][cLocationz]+1.0,CarInfo[z][cAngle],CarInfo[z][cColorOne],CarInfo[z][cColorTwo],60000);
        LoadComponents(z);
        format(TextCar, sizeof(TextCar), "%s-%s-%s", CarInfo[z][cPlate1], CarInfo[z][cPlate2], CarInfo[z][cPlate3]);
        TextUpCar[z] = Create3DTextLabel(TextCar, 0x33AAFFFF , 0.0, 0.0, 0.0, 25, 0, 1);
        Attach3DTextLabelToVehicle(TextUpCar[z], z, 0.0, 0.0, 0.1);
    }

Acum nu mai apare textul nici la case nici la masini.

 

Link to comment
Share on other sites

  • 0
On 8/19/2017 at 1:47 PM, Quasar said:

Problemă: Am facut un sistem de plate cu 3dtextlabel pentru vehicule , faza e ca daca ies de pe server si intru iar dispare textul insa ramane salvat in baza ex LS-97-EFL , am incercat la loadcar sa-l pun asa


     LoadCar();
    for(new h = carsonserver; h < sizeof(CarInfo); h++)
    {
        AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
        LoadComponents(h);
        format(TextCar, sizeof(TextCar), "%s-%s-%s", CarInfo[thiscar][cPlate1], CarInfo[thiscar][cPlate2], CarInfo[thiscar][cPlate3]);
        TextUpCar[h] = Create3DTextLabel(TextCar, 0x33AAFFFF , 0.0, 0.0, 0.0, 25, 0, 1);
        Attach3DTextLabelToVehicle(TextUpCar[h], h, 0.0, 0.0, 0.1);
    }


Apare textul pe masina dar dispare cel de la case
Ce ai încercat să faci: Nu stiu ce sa fac.
Erori/atentionari: Nu am erori.
Cod sursă: -
Imagini: http://imgur.com/a/gE4aX
Precizări: Multumesc.

Creeaza masina cu CreateVehicle e mai bine, si vezi daca se schimba ceva

Citeste si pe wiki despre AddStaticVehicleEx:

Can only be used when the server initializes (under OnGameModeInit)

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.