[Solved] Creating a tag above player names.
#4

Quote:
Originally Posted by Ace_Menace
Quote:
Originally Posted by Mr.Z
Try...

pawn Код:
if(strcmp(cmd, "/afk", true) == 0) {
      new afk = Create3DTextLabel("afk", 0xFFFF00FF, 0, 0, 0, 100, 0, 0);
      Attach3DTextLabelToPlayer(afk, playerid, 0, 0, 0, 0);
    return 1;
    }
Ah, now this is what I thought.

But I receive these warnings, (probably nothing...)
Quote:

(29)warning 213: tag mismatch
(30)warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.


Firstly: What's on line 29 and 30? (See edit at the bottom of the post)
Secondly: Change Attach3DTextLabelToPlayer to this - Attach3DTextLabelToPlayer(afk, playerid, 0, 0, 0, 0.7); This will make the label appear above the name tag rather than at the level of the player, you can change the 0.7 part to get the desired position but remember that 1.0 is a fairly large step, you can also go in the negatives I believe.

Edit: Sorry, didn't read the code well enough. What you need to do is change the line that says-
new afk = Create3DTextLabel("afk", 0xFFFF00FF, 0, 0, 0, 100, 0, 0);

into this-

new Text3D:afk = Create3DTextLabel("afk", 0xFFFF00FF, 0, 0, 0, 100, 0, 0);
Reply


Messages In This Thread
[Solved] Creating a tag above player names. - by Ace_Menace - 30.09.2009, 22:37
Re: [Help] Creating a tag above player names. - by Mr.Z - 30.09.2009, 22:49
Re: [Help] Creating a tag above player names. - by Ace_Menace - 30.09.2009, 22:51
Re: [Help] Creating a tag above player names. - by Dresden - 30.09.2009, 23:00
Re: [Help] Creating a tag above player names. - by Ace_Menace - 30.09.2009, 23:07
Re: [Help] Creating a tag above player names. - by Mr.Z - 30.09.2009, 23:11
Re: [Help] Creating a tag above player names. - by Ace_Menace - 30.09.2009, 23:50
Re: [Solved] Creating a tag above player names. - by Dresden - 01.10.2009, 02:43

Forum Jump:


Users browsing this thread: 3 Guest(s)