SetObjectMaterialText is changing the wrong object
#1

If you take a look at this picture, those 2 signs are supposed to have text on them and be invisible, but instead, the ground -- where I'm standing -- turned invisible:



And here's what it's supposed to look like:



Details:
-using latest version of Incognito's Streamer
-correct script format

Script:

pawn Код:
//Dillimore Clinic
    new ClinicSign1 = CreateObject(18066, 748.90002, -630.59998, 18.90000,   0.00000, 0.50000, 180.00000);
    SetObjectMaterialText(ClinicSign1, "Dillimore Clinic", 0, OBJECT_MATERIAL_SIZE_256x128,"Arial Black", 28, 0, 0xFF000000, 0xFFFFFF00, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    new ClinicSign2 = CreateObject(18066, 747.50000, -630.59998, 18.90000,   0.00000, 0.50000, 179.99500);
    SetObjectMaterialText(ClinicSign2, "Dr. Richard Cranium MD", 0, OBJECT_MATERIAL_SIZE_256x128,"Arial Black", 28, 0, 0xFF000000, 0xFFFFFF00, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);

    CreateDynamicObject(13681, 735.70001, -638.79999, 19.30000,   0.00000, 0.40000, 180.00000); //Building
    CreateDynamicObject(10976, 765.00000, -628.50000, 14.90000,   358.79999, 0.00000, 0.00000); //Ground
Reply
#2

Play around at third parameter of SetObjectMaterialText
SetObjectMaterialText(ClinicSign1, "Dillimore Clinic", 0 (change it to 1 or 2, 3 ..)
Reply
#3

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
Play around at third parameter of SetObjectMaterialText
SetObjectMaterialText(ClinicSign1, "Dillimore Clinic", 0 (change it to 1 or 2, 3 ..)
Ah, ok, turns out the object is incompatible lol thanks Newb
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)