What is wrong with this script => (problems with Attach3DTextLabelToPlayer)?
#5

I think you f**ked up.

I'll fix your code and make it better:
pawn Код:
forward Text(playerid);
public Text(playerid)
{
  if(!IsPlayerNPC(playerid))
    return true;

  new npcname[MAX_PLAYER_NAME];
  GetPlayerName(playerid, npcname, sizeof(npcname));
  if(!strcmp(npcname, "YUGO", true))
  {
    new Text3D:text;
    text = Create3DTextLabel("Jaz sem YUGO", GetPlayerColor(playerid), 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(text, playerid, 0.0, 0.0, 0.0);
  }
}
The X, Y, Z are the OFFSET coordinates, not the real coordinates!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)