SetObjectMaterialText
#1

I am having a hard time on placing the text on the center.
The word keeps repeating on loop instead of my intended plans.

Any idea why?

SS:



Code:

PHP код:
new doc_text CreateDynamicObject(19463, -2455.37061, -584.37286131.22034,   0.000000.0000060.00000);
SetDynamicObjectMaterialText(doc_text0"Department of Corrections"OBJECT_MATERIAL_SIZE_256x256"Arial"4210xFFFFFFFF0xFF000000OBJECT_MATERIAL_TEXT_ALIGN_CENTER); 
Reply
#2

Bad reply.

Max font size 255.

Regards.
Reply
#3

Set bold as '0' and let me know if fixed or no.

Regards.
Reply
#4

That didn't fixed it, There are at least 3 "Department of Corrections" written on the object with spaces on it.
Reply
#5

All seems right i checked many times function format, r u sure thats the bugged code?
Reply
#6

<Removed>
Reply
#7

This is because the texture on that object is repeated over and over again. You have to find an object model which isn't repeating its texture. AFAIK, these aren't repeating the texture:
Quote:

19475 Plane001
19476 Plane002
19477 Plane003
19478 Plane004
19479 Plane005
19480 Plane006
19481 Plane007
19482 Plane008
19483 Plane009

They have different sizes, so just play around with them to get what you want.
Reply
#8

Quote:
Originally Posted by IstuntmanI
Посмотреть сообщение
This is because the texture on that object is repeated over and over again. You have to find an object model which isn't repeating its texture. AFAIK, these aren't repeating the texture:

They have different sizes, so just play around with them to get what you want.
Cheers mate, Gonna try it out

Edit; Are these object invisible? I can't seem to see them on SA-MP map editor when inserting them.
Reply
#9

Quote:
Originally Posted by JaKe Elite
Посмотреть сообщение
Cheers mate, Gonna try it out

Edit; Are these object invisible? I can't seem to see them on SA-MP map editor when inserting them.
Yes, they are. To see them you have to change their material.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)