Porque se me bugean los TD -
Matyaas - 02.06.2017
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?
Respuesta: Porque se me bugean los TD -
Daniielk - 05.06.2017
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.
Respuesta: Porque se me bugean los TD -
The-Krew - 05.06.2017
no uses onplayerupdate xD
Respuesta: Porque se me bugean los TD -
Daniielk - 05.06.2017
Quote:
Originally Posted by The-Krew
no uses onplayerupdate xD
|
Que tiene de malo? xD
Respuesta: Porque se me bugean los TD -
Matyaas - 05.06.2017
Ya lo resolvн hace dнas xd gracias de todos modos
Respuesta: Porque se me bugean los TD -
Daniielk - 05.06.2017
Quote:
Originally Posted by Matyaas
Ya lo resolvн hace dнas xd gracias de todos modos
|
Quй implementaste?
Respuesta: Porque se me bugean los TD -
Matyaas - 06.06.2017
Cambiй el textdraw de GamemodeInit a OnPlayerConnect xd
y cree un public nuevo donde se pone que el textdraw se modifique y actualice.
Respuesta: Porque se me bugean los TD -
Daniielk - 06.06.2017
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.