20.03.2010, 08:02
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.
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.