SA-MP Forums Archive
[HELP] Attach3DTextLabelToPlayer - 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)
+--- Thread: [HELP] Attach3DTextLabelToPlayer (/showthread.php?tid=511856)



[HELP] Attach3DTextLabelToPlayer - monster010 - 07.05.2014

I have put this script:

pawn Код:
new staff:label = Create3DTextLabel("STAFF BL", COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
At:

pawn Код:
public OnPlayerConnect(playerid)
And when i try to compile...2 warnings:
Код:
C:\gf.pwn(2356) : warning 213: tag mismatch
C:\gf.pwn(2357) : warning 213: tag mismatch



Re: [HELP] Attach3DTextLabelToPlayer - Nathan_Taylor - 07.05.2014

Quote:
Originally Posted by monster010
Посмотреть сообщение
I have put this script:

pawn Код:
new staff:label = Create3DTextLabel("STAFF BL", COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
At:

pawn Код:
public OnPlayerConnect(playerid)
And when i try to compile...2 warnings:
Код:
C:\gf.pwn(2356) : warning 213: tag mismatch
C:\gf.pwn(2357) : warning 213: tag mismatch
pawn Код:
new stafflabel = Create3DTextLabel("STAFF BL", COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0, 0);
Attach3DTextLabelToPlayer(stafflabel, playerid, 0.0, 0.0, 0.7);
You defined it as "staff:label" and attached "label"


Re: [HELP] Attach3DTextLabelToPlayer - Smileys - 07.05.2014

Quote:
Originally Posted by Nathan_Taylor
Посмотреть сообщение
pawn Код:
new stafflabel = Create3DTextLabel("STAFF BL", COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0, 0);
Attach3DTextLabelToPlayer(stafflabel, playerid, 0.0, 0.0, 0.7);
You defined it as "staff:label" and attached "label"
wrong, still will give warnings.

he should do:

pawn Код:
new Text3D:stafflabel =Create3DTextLabel( ... );
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer