30.07.2012, 16:09
- 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);