Put a word above player's head - 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: Put a word above player's head (
/showthread.php?tid=238759)
Put a word above player's head -
Sn4ke - 12.03.2011
Hello, a question : How can I put a word like newbie or helper above the player's head ?
Thanks to help me again !!
Re: Put a word above player's head -
Sasino97 - 12.03.2011
Use:
Create3DTextLabel
and
Attach3DTextLabelToPlayer
https://sampwiki.blast.hk/wiki/Create3DTextLabel
Re : Put a word above player's head -
Sn4ke - 12.03.2011
thank you very much Sasino (again)
Re : Put a word above player's head -
Sn4ke - 12.03.2011
I have a new problem cause I try to display the rank of the player above the head's player
pawn Код:
label[playerid] = Create3DTextLabel("%S",0x008080FF,30.0,40.0,50.0,40.0,0 ,rank);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
When compiling it say "error 035: argument type mismatch (argument
" at the line
label[playerid] = Create3DTextLabel("%S",0x008080FF,30.0,40.0,50.0,4 0.0,0 ,rank);
What is meaning ?
Re: Re : Put a word above player's head -
Sasino97 - 12.03.2011
Quote:
Originally Posted by Sn4ke
I have a new problem cause I try to display the rank of the player above the head's player
pawn Код:
label[playerid] = Create3DTextLabel("%S",0x008080FF,30.0,40.0,50.0,40.0,0 ,rank); Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); return 1;
When compiling it say "error 035: argument type mismatch (argument " at the line
label[playerid] = Create3DTextLabel("%S",0x008080FF,30.0,40.0,50.0,4 0.0,0 ,rank);
What is meaning ?
|
It means that the 8th argument can't be "rank", but true or false:
pawn Код:
new string[41];
format(string,sizeof(string),"%s",rank);
Create3DTextLabel(string,0x008080FF,30.0,40.0,50.0,40.0,0 ,0); //Argument 8 must be 0(false) or 1(true)