10.01.2014, 14:35
Hello i have this code
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 Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success) {
if (!success) {
TextDrawShowForPlayer(playerid, Textdraw0);
SetTimerEx("InvalidKomanda", 3000, true, "");
}
return 1;
}
forward InvalidKomanda();
public InvalidKomanda()
{
TextDrawDestroy(Textdraw0);
}

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);