SA-MP Forums Archive
3d text label not working - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 3d text label not working (/showthread.php?tid=264806)



3d text label not working - swieberdevos - 27.06.2011

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)



Re: 3d text label not working - Jantjuh - 27.06.2011

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


Re: 3d text label not working - swieberdevos - 28.06.2011

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