[UNSOLVED] 3D Text Label doesn't shows...
#1

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,GetPlayerColor(playerid), 0.0,0.0,0.0, 40.0, 0, 0);

Thanks
Reply
#2

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]);
Reply
#3

Look how old the thread is.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)