01.04.2013, 15:59
You need to assign a variable to your label. You can do so by modifying your Create3DTextLabel line to the following:
Above that, you should create the variable for the label:
Then when you want to destroy it:
You should also destroy it under OnPlayerDisconnect if the label exists.
pawn Код:
myLabel[playerid] = Create3DTextLabel(.....);
pawn Код:
new Text3D: myLabel[MAX_PLAYERS];
pawn Код:
Delete3DTextLabel(myLabel[playerid]);