23.03.2013, 17:20
por ke los timers no responden con stock debes utilizar forward y public.
EDIT: y tienes otra cosa, si te fijas bien tienes el SetTimerEx con un nombre y el stock del SetTimerEx con otro .
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;
}