28.03.2015, 17:31
Hace ya rato que tengo un problema con estos textdraws clickeables, al clickearlos en el juego las funciones no se ejecutan.
Estos estan en "OnPlayerRequestClass".
Al momento de entrar al juego, ni el efecto hover se aplica, no sй por que.
pawn Код:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(playertextid == Textdraw1[playerid] || Textdraw0[playerid] || Textdraw2[playerid] || Textdraw3[playerid] || Textdraw4[playerid] || Textdraw5[playerid])
{
print("Exito");
if(strcmp(FaccionActual[playerid], "Ley", false, 30))
{
PlayerTextDrawSetString(playerid, Textdraw5[playerid], "Desorden");
format(FaccionActual[playerid], 30, "Desorden");
}
if(strcmp(FaccionActual[playerid], "Desorden", false, 30))
{
PlayerTextDrawSetString(playerid, Textdraw5[playerid], "Ley");
format(FaccionActual[playerid], 30, "Ley");
}
}
return 1;
}
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
new string[128];
new Nombre[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pPrimeraVezJugando] == 1)
{
//REGISTRO DE CARACTER
PlayerTextDrawShow(playerid, Textdraw0[playerid]);
PlayerTextDrawShow(playerid, Textdraw1[playerid]);
PlayerTextDrawShow(playerid, Textdraw2[playerid]);
PlayerTextDrawShow(playerid, Textdraw3[playerid]);
PlayerTextDrawShow(playerid, Textdraw4[playerid]);
PlayerTextDrawShow(playerid, Textdraw5[playerid]);
PlayerTextDrawShow(playerid, Textdraw6[playerid]);
PlayerTextDrawShow(playerid, Textdraw7[playerid]);
PlayerTextDrawShow(playerid, Textdraw8[playerid]);
/* OMITН DATOS */
SelectTextDraw(playerid, 0xFF4040AA); // << DEBERIA IR BIEN.
}
return 1;
}