problem
#1

Hello i have this code

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
    if (!success) {
        TextDrawShowForPlayer(playerid, Textdraw0);
        SetTimerEx("InvalidKomanda", 3000, true, "");
    }
    return 1;
}

forward InvalidKomanda();
public InvalidKomanda()
{
    TextDrawDestroy(Textdraw0);
}
And the TextDraw is showing when an player writes an invalid command(unknown) and afrer 3 seconds it disaper. that is not the problem but the problem is when i type again the invalid command(unknown) the text draw dosent show up

The TextDraw if needed:

pawn Код:
Textdraw0 = TextDrawCreate(252.000000, 337.000000, "KOMANDA KOJU STE UKUCALI NEPOSTOJI");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 2);
    TextDrawLetterSize(Textdraw0, 0.320000, 1.200000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetShadow(Textdraw0, 1);
    TextDrawUseBox(Textdraw0, 1);
    TextDrawBoxColor(Textdraw0, 1679040075);
    TextDrawTextSize(Textdraw0, 517.000000, 0.000000);
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)