Player Textdraw Doesn't show...
#1

Hey!

So, I made a player-textdraw that would show everytime when someone types a wrong command.

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
    {
              new str[256];
              format(str,sizeof(str),"The Command ~y~%s ~w~does not exist, To see all commands use ~y~/cmds ",cmdtext);
              PlayerTextDrawSetString(playerid,wrongcmd[playerid],str);
              PlayerTextDrawShow(playerid,wrongcmd[playerid]);
              SetTimerEx("HideWrongTD", 4000, false, "i", playerid);
    }
    return 1;
}

forward HideWrongTD(playerid);

public HideWrongTD(playerid)
{
    PlayerTextDrawHide(playerid, wrongcmd[playerid]);
}
Somehow, The textdraw isn't showing... Whenever someone types a wrong command, nothing happens.
I tried changing this
Код:
public HideWrongTD(playerid)
{
	PlayerTextDrawHide(playerid, wrongcmd[playerid]);
}
to this
Код:
public HideWrongTD(playerid)
{
	PlayerTextDrawDestroy(playerid, wrongcmd[playerid]);
}
It shows the textdraw for the first time, but after that it doesn't show it.

This is irritating, any kind of help would be appreciated?
Reply


Messages In This Thread
Player Textdraw Doesn't show... - by SsHady - 18.12.2016, 06:17
Re: Player Textdraw Doesn't show... - by iLearner - 18.12.2016, 06:32
Re: Player Textdraw Doesn't show... - by SsHady - 18.12.2016, 06:37
Re: Player Textdraw Doesn't show... - by iLearner - 18.12.2016, 06:43
Re: Player Textdraw Doesn't show... - by SsHady - 18.12.2016, 06:54
Re: Player Textdraw Doesn't show... - by NaS - 18.12.2016, 06:58
Re: Player Textdraw Doesn't show... - by SsHady - 18.12.2016, 07:04
Re: Player Textdraw Doesn't show... - by NaS - 18.12.2016, 07:05
Re: Player Textdraw Doesn't show... - by SsHady - 18.12.2016, 08:20

Forum Jump:


Users browsing this thread: 1 Guest(s)