18.01.2010, 01:10
HI, I'm trying to make the text label in top of my head update but I can't. I'm not sure what I'm doing wrong but the text wont update. I tried everything but no luck. Here's what I got..
This creates the text label. (it works)
The update. (not working)
I also did it like this
UpdatePlayer3DTextLabelText(playerid, PlayerText3D:textlabel[playerid], yellow, params); Like the wiki (https://sampwiki.blast.hk/wiki/UpdatePlayer3DTextLabelText) but it doesn't work.
Thank you in advance for any help.
This creates the text label. (it works)
pawn Код:
dcmd_test(playerid,params[])
{
if(!strlen(params)) return SendClientMessage(playerid, red, "empty..");
new string[128];
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
textlabel[playerid] = PlayerText3D:Create3DTextLabel(params, green, x, y, z, 40.0, 0, 0);
Attach3DTextLabelToPlayer(Text3D:textlabel[playerid], playerid, 0.0, 0.0, 0.3);
return 1;
}
pawn Код:
dcmd_update(playerid,params[])
{
if(!strlen(params)) return SendClientMessage(playerid, red, "empty..");
UpdatePlayer3DTextLabelText(playerid, textlabel[playerid], yellow, params);
return 1;
}
UpdatePlayer3DTextLabelText(playerid, PlayerText3D:textlabel[playerid], yellow, params); Like the wiki (https://sampwiki.blast.hk/wiki/UpdatePlayer3DTextLabelText) but it doesn't work.
Thank you in advance for any help.

