Jump to content

Question

Posted

Problema intalnita (descriere): Imi da o eroare la o comanda
Ero(area / rile) / warning-(ul / urile): error 035: argument type mismatch (argument 6)
Liniile de cod / sursa / script-ul(obligatoriu):

        new Float:vehx, Float:vehy, Float:vehz;
        GetVehiclePos(currentveh, vehx, vehy, vehz);
        new objectid = CreateObject(19327, vehx,vehy,vehz, vehx,vehy,vehz);
        SetObjectMaterialText(objectid, "%s", 0, 50, "Arial",GetName(playerid), 25, 1, -16777216, 0, 1); // codul care are eroare
        AttachObjectToVehicle(objectid, currentveh, 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);


Ati incercat sa rezolvati singur?: da .. dar nu am putut sa o rezolv

 

4 answers to this question

Recommended Posts

  • 0
Posted
43 minutes ago, EzrealET12 said:

Problema intalnita (descriere): Imi da o eroare la o comanda
Ero(area / rile) / warning-(ul / urile): error 035: argument type mismatch (argument 6)
Liniile de cod / sursa / script-ul(obligatoriu):

        new Float:vehx, Float:vehy, Float:vehz;
        GetVehiclePos(currentveh, vehx, vehy, vehz);
        new objectid = CreateObject(19327, vehx,vehy,vehz, vehx,vehy,vehz);
        SetObjectMaterialText(objectid, "%s", 0, 50, "Arial",GetName(playerid), 25, 1, -16777216, 0, 1); // codul care are eroare
        AttachObjectToVehicle(objectid, currentveh, 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);


Ati incercat sa rezolvati singur?: da .. dar nu am putut sa o rezolv

 

Parametri greșiți la SetObjectMaterial..nu poți folosi %s si getname acolo...trebuie să formatezi un string.

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

Servicii Scripting de calitate:

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

Future Project: ExpertGame

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

  • 0
Posted
if (strcmp("/text", cmdtext, true) == 0)
{
    new objectid = CreateObject(19353, 0, 0, 10, 0.0, 0.0, 90.0); //create the object
    SetObjectMaterialText(objectid, "SA-MP {FFFFFF}0.3{008500}e {FF8200}RC7", 0, OBJECT_MATERIAL_SIZE_256x128,
    "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    // write "SA-MP 0.3e RC7" on the object, with orange font color and black background
    return 1;
}

 uite un ex

  • 0
Posted
20 hours ago, EzrealET12 said:

Si ,cum fac asta , ca nu prea ma descurc la scripting .. ?

new string[25];

format(string, sizeof(string),"%s",GetName(playerid));

SetObjectMaterialText(objectid, string, 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);

 

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

Servicii Scripting de calitate:

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

Future Project: ExpertGame

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

Guest
This topic is now closed to further replies.
×
×
  • 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.