Porque se me bugean los TD
#1

Hola tengo un problema que siempre he tenido con los malditos textdraws xd, cuando tengo uno de estadisticas por ejemplo, se modifican o se bugean desapareciendo 1 textdraw nada que ver, etc.

Por ejemplo este:
Код:
//-TD-ESTADISTICAS-//
forward ShowInformationTxt(playerid); //ACTIVAR PARA ACTIVAR TWD CON -> ShowInformationTx(playerid);
public ShowInformationTxt(playerid)
{
	new status[256];
//-------------
    TextDrawShowForPlayer(playerid, TextoEstadisticas[playerid]);
    TextDrawShowForPlayer(playerid, BoxEstadisticas);
    //-TEXTDRAWS-BOX-COMANDOS-//
    TextDrawShowForPlayer(playerid, BoxCMDS);
	TextDrawShowForPlayer(playerid, TextoComandos);

    new nombre[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nombre, sizeof(nombre));
	format(status,sizeof(status),"Eres: %s ", Informacion[playerid][ClaseHumanos]);
	TextDrawSetString(TextoEstadisticas[playerid],status);

}
Ni siquiera me aparece y me bugeo 1 textdraw simple que no se modifica (se queda quieto).
Igual tengo otros twd cambiables como el del velocimetro, alguna ayuda?
Reply
#2

Puedes agregarlo a OnPlayerUpdate, creo que ahн es donde se actualiza la informaciуn, variables/TD's, a mi tambiйn me solia pasar.

Te dejarй este ejemplo:

public OnPlayerUpdate(playerid)
{
new nombre[MAX_PLAYER_NAME],status[1500];
GetPlayerName(playerid, nombre, sizeof(nombre));
format(status,sizeof(status),"Eres: %s ", Informacion[playerid][ClaseHumanos]);
TextDrawSetString(TextoEstadisticas[playerid],status);
return 1;
}

Espero te pueda funcionar.
Reply
#3

no uses onplayerupdate xD
Reply
#4

Quote:
Originally Posted by The-Krew
Посмотреть сообщение
no uses onplayerupdate xD
Que tiene de malo? xD
Reply
#5

Ya lo resolvн hace dнas xd gracias de todos modos
Reply
#6

Quote:
Originally Posted by Matyaas
Посмотреть сообщение
Ya lo resolvн hace dнas xd gracias de todos modos
Quй implementaste?
Reply
#7

Cambiй el textdraw de GamemodeInit a OnPlayerConnect xd
y cree un public nuevo donde se pone que el textdraw se modifique y actualice.
Reply
#8

Quote:
Originally Posted by Matyaas
Посмотреть сообщение
Cambiй el textdraw de GamemodeInit a OnPlayerConnect xd
y cree un public nuevo donde se pone que el textdraw se modifique y actualice.
Bien, recuerda que tambiйn como yo hice y me funcionу, coloquй los textdraws en onplayerupdate, ya que no se me actualizaban, y tecnicamente se bugueaban al anexarlos en onplayerconnect.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)