3DTextLabel Problem.
#1

Ey. I wanted to make 2 labels at same point. How can I make one label upper and one lower the problem is that I am using the mysql cords so I cant + i guess.

Код:
Create3DTextLabel("BOOM", 0x008080FF, exitX, exitY, exitZ, 15.0, 0, 0);
Create3DTextLabel("BOOM NR2", 0x008080FF, exitX, exitY, exitZ+10, 15.0, 0, 0);
Can u tell me the best way to do it?
Reply
#2

can you show me exitX,exitY,exitZ?
Reply
#3

Quote:
Originally Posted by Eth
Посмотреть сообщение
can you show me exitX,exitY,exitZ?
Its from mysql database.

Код:
	    string[128],
		Str[255],
		hID,
		Float:intX,
		Float:intY,
		Float:intZ,
		Float:exitX,
		Float:exitY,
		Float:exitZ,
		hOwner[24],
		hWorld,
		hPrice,
		hIntID,
		hLocked;

sscanf(Str, "p<|>iffffffs[24]iiii", hID, intX, intY, intZ, exitX, exitY, exitZ, hOwner, hWorld, hPrice, hIntID, hLocked);
Reply
#4

and what is the problem you are having now in this code

pawn Код:
Create3DTextLabel("BOOM", 0x008080FF, exitX, exitY, exitZ, 15.0, 0, 0);
Create3DTextLabel("BOOM NR2", 0x008080FF, exitX, exitY, exitZ+10, 15.0, 0, 0);
is BOOM showing? is BOOM NR2 Showing? because it should work or does only one shop/house have it?
Reply
#5

The problem is that they are in same line, so they are coliding, is there a way for them to be one upper (z+10) for exemple and one lower?
So it would be:
BOOM
BOOM NR2
and not BOBOOOMMNR2 lol

without adding seperate cords? I mean not making one z that and other that. Just add (+) some numbers to z?
Reply
#6

yes you can for sure it should work
Reply
#7

but how can I do it? I tryed exitZ+10 didint work.
Reply
#8

strnge :O try to increase the +10 to something like + 20 or something and if it didn't work then try:
pawn Код:
Create3DTextLabel("BOOM", 0x008080FF, exitX, exitY, exitZ, 15.0, 0, 0);
Create3DTextLabel("BOOM NR2", 0x008080FF, exitX, exitY, exitZ-20, 15.0, 0, 0);
Reply
#9

Nope, doesnt work, the textlabel just disapears then. >.>
Reply
#10

try that
pawn Код:
new Float:X,Float:Y,Float:Z;

X = exitX,Y= exitY,Z = exitZ+ 12;
Create3DTextLabel("BOOM NR2", 0x008080FF, X, Y, Z, 15.0, 0, 0);
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)