Help aboutattach3dtext
#1

  • 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);
Reply
#2

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.
Reply
#3

what do you mean exactly !
Reply
#4

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
Reply
#5

Up . please
Reply
#6

pawn Код:
label = Create3DTextLabel("injured ... he need help!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
Reply
#7

errors :
array must be indexed (variable "label")
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)