3d text label not working
#1

pawn Код:
targetlabel[targetid] = CreatePlayer3DTextLabel(playerid,"Loading player data...",0x00BD00FF,X,Y,Z, 40.0, targetid, INVALID_VEHICLE_ID, 1);
It's not attaching it to the targetid..

Код:
Parameters:
(playerid, text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, attachedplayer, attachedvehicle, testLOS)
Reply
#2

Hmmmm, you could better use this way:

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer

pawn Код:
new Text3D:label[MAX_PLAYERS];
 
public OnPlayerConnect(playerid)
{
    label[playerid] = Create3DTextLabel("Hello, I am new here!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
    return 1;
}
 
public OnPlayerDisconnect(playerid, reason)
{
    Delete3DTextLabel(label[playerid]);
    return 1;
}
Edit: wait, what is the target? A player? Else you can't use this lol :P
Reply
#3

Ye, a player and only I should be able to see it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)