problem
#3

Quote:
Originally Posted by Miguel
Посмотреть сообщение
It doesn't show up because you're destroying it after it's shown the first time. Don't destroy it but hide it instead.

https://sampwiki.blast.hk/wiki/TextDrawHideForPlayer

P.D: you'll have to pass playerid as an argument at SetTimerEx to know whose textdraw's going to be hidden.
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
    if (!success) {
        TextDrawShowForPlayer(playerid, Textdraw0);
        SetTimerEx("InvalidKomanda", 3000, false, "");
    }
    return 1;
}

forward InvalidKomanda();
public InvalidKomanda()
{
    TextDrawHideForPlayer(MAX_PLAYERS, Textdraw0);
}
I was thinking to replace playerid with MAX_PLAYERS because i get an error but not its not hiding the textdraw
Reply


Messages In This Thread
problem - by MatriXgaMer - 10.01.2014, 14:35
Re: problem - by Miguel - 10.01.2014, 14:38
Re: problem - by MatriXgaMer - 10.01.2014, 14:49
Re: problem - by IceShock - 10.01.2014, 14:53
Re: problem - by amirab - 10.01.2014, 14:54
Re: problem - by MatriXgaMer - 10.01.2014, 14:59

Forum Jump:


Users browsing this thread: 2 Guest(s)