Godmode 3D text
#1

hi all...

i got a little bug here... when my player type /godmode on, the 3D text showed. but, when they typed /godmode off, the 3D text doesn't removed.... but the godmode off textdraw showed... can anyone fix this problem?

pawn Код:
//somewhere in my script
new Text3D:godtext[MAX_PLAYERS];

//on my /godmode on script
godtext[playerid] = Create3DTextLabel("GOD MODE {0000FF}ON",COLOR_GREEN,0,0,0,40,-1,1);
Attach3DTextLabelToPlayer(godtext[playerid], playerid, 0.0, 0.0, 0.3);

//on my godmode off script
Delete3DTextLabel(godtext[playerid]);
Reply
#2

You can solve it by 2 ways,1 :
Changing
pawn Код:
Delete3DTextLabel(godtext[playerid]);
To
pawn Код:
Delete3DTextLabel(Text3D:godtext[playerid]);
2.updating the text's string to nothing,so it would be
pawn Код:
Update3DTextLabelText(godtext[playerid], 0xFFFFFFFF, " ");
Instead of deleting it
Reply
#3

i already tried this way
pawn Код:
Delete3DTextLabel(Text3D:godtext[playerid]);
but it still wont removed...
gonna test the second way, but i cant test it by myself
but it's seems will be worked..
i forgot about Update3DTextLabelText :v
+REP

and i will try this way
pawn Код:
Update3DTextLabelText(godtext[playerid], 0xFFFFFFFF, " ");
    Delete3DTextLabel(Text3D:godtext[playerid]);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)