attach text labels
#1

Hey guys,
I'm trying to attach a 3d text label to a player by using this, however a label is not attached:
PHP код:
        PlayerTemp[playerid][pCTEXT] = Create3DTextLabel("Roulette\n($500,000 - $1,000,000)"COLOR_ORANGE30.040.050.040.00);
        
Attach3DTextLabelToPlayer(PlayerTemp[playerid][pCTEXT], playerid0.00.00.7); 
what could be the bug?
Reply
#2

PHP код:
new Float:x,Float:y,Float:z// Define for the x,y,z positions
GetPlayerPos(playeridxyz); // Getting the player positions

PlayerTemp[playerid][pCTEXT] = Create3DTextLabel("Roulette\n($500,000 - $1,000,000)"COLOR_ORANGE30.040.050.040.00); 
Attach3DTextLabelToPlayer(PlayerTemp[playerid][pCTEXT], playeridxyz); // And here we attach the 3d label on the player position 
Reply
#3

Quote:
Originally Posted by oMa37
Посмотреть сообщение
PHP код:
new Float:x,Float:y,Float:z// Define for the x,y,z positions
GetPlayerPos(playeridxyz); // Getting the player positions
PlayerTemp[playerid][pCTEXT] = Create3DTextLabel("Roulette\n($500,000 - $1,000,000)"COLOR_ORANGE30.040.050.040.00); 
Attach3DTextLabelToPlayer(PlayerTemp[playerid][pCTEXT], playeridxyz); // And here we attach the 3d label on the player position 
didnt work, and the x y z are the offsets from the player, not his position so >:
figured out a diff solution tho
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)