їPorquй no funciona?
#2

por ke los timers no responden con stock debes utilizar forward y public.

pawn Код:
stock GameTextDraw(playerid,string[],tiempo) {
    if (!GetPVarInt(playerid,"TextMsgMostrado")) {
        TextDrawShowForPlayer(playerid,MsgText[playerid]);
        TextDrawSetString(MsgText[playerid],string);      
        SetPVarInt(playerid,"TextMsgMostrado",true);
        SetTimerEx("EsconderMsg",tiempo,0,"d",playerid);
    }
    return true;
}

forward EsconderMsg(playerid);
public EsconderMsg(playerid)  {
    TextDrawHideForPlayer(playerid,MsgText[playerid]);
    SetPVarInt(playerid,"TextMsgMostrado",false);
    return true;
}
EDIT: y tienes otra cosa, si te fijas bien tienes el SetTimerEx con un nombre y el stock del SetTimerEx con otro .
Reply


Messages In This Thread
їPorquй no funciona? - by jwalker - 23.03.2013, 17:17
Respuesta: їPorquй no funciona? - by OTACON - 23.03.2013, 17:20
Respuesta: їPorquй no funciona? - by jwalker - 23.03.2013, 18:32

Forum Jump:


Users browsing this thread: 1 Guest(s)