3D Text Update
#1

Hi, I've got:

At the top of gamemode:
new Text3D:level[100];

OnPlayerDisconnect:
Delete3DTextLabel(level[playerid]);

OnGamemodeInit:
SetTimer("level2", 4000, 1);

When player is logged in successfully:
format(str33, 256, "Level: %d Exp: %d/%d", something, something, something);
level[playerid] = Create3DTextLabel(str33,0xFFFF00AA,0.0,0.0,0.0,15. 0,0);
Attach3DTextLabelToPlayer(level[playerid], playerid, 0.0, 0.0, -0.4);

At the bottom of it:
forward level2(playerid);
public level2(playerid)
{
someting...
}
}
format(str, 256, "Level: %d Exp: %d/%d", blah, blah, blah);
Update3DTextLabelText(level[playerid],0xFFFF00AA,str);
return 1;
}


My problem is that 3DText doesn't update, it's correctly created so I can see it on someone, but it doesn't change the value.

How can I fix that?

Thank you.
Reply


Messages In This Thread
3D Text Update - by dawidek11 - 20.03.2010, 08:02
Re: 3D Text Update - by 96th - 20.03.2010, 08:53
Re: 3D Text Update - by cozza123456 - 20.03.2010, 08:56
Re: 3D Text Update - by dawidek11 - 20.03.2010, 10:52
Re: 3D Text Update - by MadeMan - 20.03.2010, 11:09
Re: 3D Text Update - by dawidek11 - 21.03.2010, 00:46

Forum Jump:


Users browsing this thread: 1 Guest(s)