Help aboutattach3dtext - 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 aboutattach3dtext (
/showthread.php?tid=364385)
Help aboutattach3dtext -
BigBaws - 30.07.2012
- hello guys im here to make a 3dtext lable attached to a player
- // on the Top of my Script
- new Text3D:label[MAX_PLAYERS];
- // this is on the public OnPlayerUpdate
- new Text3D:label = Create3DTextLabel("injured ... he need help!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
- Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
- // when he type /healme
- Delete3DTextLabel(label[playerid]);
- Error :
- warning 219: local variable "label" shadows a variable at a preceding level
- Line of => new Text3D:label = Create3DTextLabel("injured ... he need help!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Re: Help aboutattach3dtext -
Kindred - 30.07.2012
Seriously, how hard is it to understand that warning. It's very self explanatory.
Search for "label" and make sure you do not have a global variable of it.
Re : Help aboutattach3dtext -
BigBaws - 30.07.2012
what do you mean exactly !
Re : Help aboutattach3dtext -
BigBaws - 30.07.2012
this is the line of the warrning
new Text3D:label = Create3DTextLabel("injured ... he need help!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
and the warrning is
local variable "label" shadows a variable at a preceding level
Re : Help aboutattach3dtext -
BigBaws - 30.07.2012
Up . please
Re: Help aboutattach3dtext -
SomebodyAndMe - 30.07.2012
pawn Код:
label = Create3DTextLabel("injured ... he need help!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Re : Help aboutattach3dtext -
BigBaws - 30.07.2012
errors :
array must be indexed (variable "label")