25.06.2012, 17:09
(
Последний раз редактировалось Crueliz0n; 25.06.2012 в 17:41.
)
o problema й que quando a 3DText й atualizada (Update3DTextLabelText) a nova string sobrepхe a antiga invйz de substituir ficando uma por cima da outra

como resolvo isso

pawn Код:
new Text3D:TEXT1[MAX_PLAYERS];
new Zstring[128];
public OnPlayerSpawn(playerid)
{
format(Zstring, sizeof(Zstring), "Matou %d || Morreu %d", pInfo[i][matou],pInfo[i][morreu]);
TEXT1[playerid] = Create3DTextLabel(Zstring,0x00FF00FF,0.0,0.0,5,10.0,0,0);
Attach3DTextLabelToPlayer(TEXT1[playerid], playerid, 0.0, 0.0, 0.42);
return 1;
}
[IMG]http://i1081.photobucket.com/albums/j350/marcos997gt/sa-mp-006.png[/IMG]
forward TextStats();
public TextStats()
{
for(new i; i < MAX_PLAYERS; ++i)
{
format(Zstring, sizeof(Zstring), "Matou %d || Morreu %d", pInfo[playerid][matou],pInfo[playerid][morreu]);
Update3DTextLabelText(TEXT1[i], 0x00FF00FF, Zstring);
}
return 1;
}
