24.07.2011, 16:12
hey,
at the moment i want to have a system, which shows the cops how many wanteds the person has.
So I began to work with OnPlayerStreamIn..
I used CreatePlayer3DTextLabel for attaching the 3DText. But this function creates the Text on one position.
So I wanted to help out with Attach3DTextLabelToPlayer...
But this doesnt work. I always get the message : tag mismatch...
Can someone help out?
Here's the code:
at the moment i want to have a system, which shows the cops how many wanteds the person has.
So I began to work with OnPlayerStreamIn..
I used CreatePlayer3DTextLabel for attaching the 3DText. But this function creates the Text on one position.
So I wanted to help out with Attach3DTextLabelToPlayer...
But this doesnt work. I always get the message : tag mismatch...
Can someone help out?
Here's the code:
Код:
new Text3D:playertextid[MAX_PLAYERS]; if(SpielerInfo[forplayerid][pFraktion] == 1) { new Float:X, Float:Y, Float:Z; GetPlayerPos( playerid, X, Y, Z ); playertextid[playerid] = CreatePlayer3DTextLabel(forplayerid,"Hello\nI'm at your position",0x008080FF,X,Y,Z,40.0);//Error Line! Attach3DTextLabelToPlayer(Text3D:playertextid[playerid], playerid, 0.0, 0.0, 0.0); }