Szerző Téma: Kocsira irás  (Megtekintve 648 alkalommal)

Kocsira irás
« Dátum: 2013. Július 13. - 14:18:55 »
0 Show voters
Sziasztok.Van ugye ez a SetObjectMaterialText:
 
if (strcmp(\"/text\", cmdtext, true) == 0)
{
new myobject = CreateObject(19353, 0, 0, 10, 0.0, 0.0, 90.0); //create the object
SetObjectMaterialText(myobject, \"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;

 
   
Na ezt hogy rakjam rá kocsira?,Pls help

Elérhető gbr333

  • 670
    • Profil megtekintése
Kocsira irás
« Válasz #1 Dátum: 2013. Július 13. - 14:25:33 »
0 Show voters
AttachObjectToVehicle(objectid, vehicleid, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0);

Kocsira irás
« Válasz #2 Dátum: 2013. Július 13. - 15:19:37 »
0 Show voters
és hova tudom irni a szöveget?

Elérhető gbr333

  • 670
    • Profil megtekintése
Kocsira irás
« Válasz #3 Dátum: 2013. Július 13. - 16:17:34 »
0 Show voters

new
        securicar,
        theobject;
   
    securicar = CreateVehicle(SECURICA, 2239.8296, 2475.9946, 3.3968, 270.0, 0, 0, -1),
    theobject = CreateObject(19477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    SetObjectMaterialText(theobject, \"S.W.A.T.\", 0, OBJECT_MATERIAL_SIZE_256x128, \"BankGothic Md BT\", 60, 1, 0xfff0f0f0, 0, 1);
    AttachObjectToVehicle(theobject, securicar, 1.153, -1.2, 0.46, 0.0, 0.0, 0.0);

 
Egy Securicar  S.W.A.T felirattal.

Kocsira irás
« Válasz #4 Dátum: 2013. Július 13. - 21:17:22 »
0 Show voters
C:\\Users\\user\\Desktop\\sajat2.pwn(1526) : error 010: invalid function or declaration
C:\\Users\\user\\Desktop\\sajat2.pwn(1529) : error 021: symbol already defined: \"AttachObjectToVehicle\"
C:\\Users\\user\\Desktop\\sajat2.pwn(1530) : warning 203: symbol is never used: \"securicar\"
C:\\Users\\user\\Desktop\\sajat2.pwn(1530) : warning 203: symbol is never used: \"theobject\"

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal