Problema con textdraws clickeables en 0.3.7 RC-3. Bug?
#1

Hace ya rato que tengo un problema con estos textdraws clickeables, al clickearlos en el juego las funciones no se ejecutan.

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;
}
Estos estan en "OnPlayerRequestClass".

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;
}
Al momento de entrar al juego, ni el efecto hover se aplica, no sй por que.
Reply


Messages In This Thread
Problema con textdraws clickeables en 0.3.7 RC-3. Bug? - by CrossOv3r - 28.03.2015, 17:31
Respuesta: Problema con textdraws clickeables en 0.3.7 RC-3. Bug? - by OTACON - 28.03.2015, 17:37
Re: Problema con textdraws clickeables en 0.3.7 RC-3. Bug? - by CrossOv3r - 28.03.2015, 17:53
Respuesta: Problema con textdraws clickeables en 0.3.7 RC-3. Bug? - by OTACON - 28.03.2015, 17:56

Forum Jump:


Users browsing this thread: 1 Guest(s)