[UNSOLVED] 3D Text Label doesn't shows... - 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: [UNSOLVED] 3D Text Label doesn't shows... (
/showthread.php?tid=117702)
[UNSOLVED] 3D Text Label doesn't shows... -
Nameless303 - 01.01.2010
Hi,
I haven't got any errors in my script, but ingame the 3D text label doesn't shows...

Heres my script;
Код:
//OnTop
new Text3D:playerlabel[MAX_PLAYERS];
//OnPlayerSpawn
if(GetPlayerTeam(playerid) == TEAM_LS)format(string,sizeof(string),"LS Airport");
else if(GetPlayerTeam(playerid) == TEAM_LV)format(string,sizeof(string),"LV Airport");
playerlabel[playerid] = Create3DTextLabel(string, GetPlayerColor(playerid), 0.0,0.0,0.0, 40.0, 0, 0);
Attach3DTextLabelToPlayer(playerlabel[playerid], playerid, 0.0,0.0,0.0);
//OnPlayerDisconnect & OnPlayerDeath
Delete3DTextLabel(playerlabel[playerid]);
I don't know if it has anything to do with it, but i used SetPlayerColor(playerid,COLOR); before the Create3DTextLabel(string,G
etPlayerColor(playerid), 0.0,0.0,0.0, 40.0, 0, 0);
Thanks
Re: [UNSOLVED] 3D Text Label doesn't shows... -
Germanator - 27.03.2010
How about you try to change the Attach3dLabelToPlayer Offset. It looks like the 3D label spawns inside the body of the player.
Код:
//OnTop
new Text3D:playerlabel[MAX_PLAYERS];
//OnPlayerSpawn
if(GetPlayerTeam(playerid) == TEAM_LS)format(string,sizeof(string),"LS Airport");
else if(GetPlayerTeam(playerid) == TEAM_LV)format(string,sizeof(string),"LV Airport");
playerlabel[playerid] = Create3DTextLabel(string, GetPlayerColor(playerid), 0.0,0.0,0.0, 40.0, 0, 0);
Attach3DTextLabelToPlayer(playerlabel[playerid], playerid, 0.0,0.0,1.0);
//OnPlayerDisconnect & OnPlayerDeath
Delete3DTextLabel(playerlabel[playerid]);
Re: [UNSOLVED] 3D Text Label doesn't shows... -
Norn - 27.03.2010
Look how old the thread is.