[HELP] Create3DTextLabel Not Update - 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: [HELP] Create3DTextLabel Not Update (
/showthread.php?tid=132490)
[HELP] Create3DTextLabel Not Update -
trindade02 - 07.03.2010
Create3DTextLabel not update ...
people, I'm trying to ping over the player, 3dtext of the update, the more he is changing the ping just not delete the old 3dtext ... he will put a text on top of another and is blurry to see, does anyone can help me?
sorry my bad English, I speak Portuguese BR
pawn Код:
new Text3D:label[MAX_PLAYERS];
pawn Код:
new string[256];
new pingx;
for (new i = 0; i < MAX_PLAYERS; i++) if (IsPlayerConnected(i))
pingx=GetPlayerPing(i);
format(string,sizeof(string),"ping: %d",pingx);
label[playerid] = Create3DTextLabel(string, 0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(0x008080FF[playerid], playerid, 0.0, 0.0, 0.3);
Update3DTextLabelText(Text3D:pingx, 0x008080FF, string);