Player 3D labels
#1

Are player 3D labels destroyed when the player leaves the server?
Reply
#2

Nope
Reply
#3

Why doesn't this work..?

pawn Код:
format(textstring, sizeof(textstring), "MODEL: %i\nOBJECTID: %i", objectid, i);
objects[i][label] = CreatePlayer3DTextLabel(playerid, textstring, TEXTCOLOR, px, py, pz, 100, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0);
But this does..

pawn Код:
format(textstring, sizeof(textstring), "MODEL: %i\nOBJECTID: %i", objectid, i);
objects[i][label] = CreatePlayer3DTextLabel(playerid, "gdjkakfga", TEXTCOLOR, px, py, pz, 100, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0);
Reply
#4

Do you only want one player to see the 3D Text Label? because i cant really tell what you intend to do there, however try this.

pawn Код:
format(textstring, sizeof(textstring), "MODEL: %i\nOBJECTID: %i", objectid, i);
objects[i][label] = CreatePlayer3DTextLabel(playerid, "New Label", TEXTCOLOR, px, py, pz, 100, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0);
UpdatePlayer3DTextLabelText(playerid, objects[i][label], TEXTCOLOR, textstring);
Reply
#5

Yes, I need to stream them because there's no virtualworld parameter..
Reply
#6

It still isn't working. Why has something that should be very simple been made complicated?
Reply
#7

How about creating it on OnPayerConnect and attatch it with string?
Reply
#8

It's not being attached to anything.

I'd rather not create 1000 labels under onPlayerConnect.
Reply
#9

Explain what you would like to do and then i'll try to give you a solution
Reply
#10

I'm trying to create a 3D label at the player's coordinates.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)