18.12.2016, 06:17
Hey!
So, I made a player-textdraw that would show everytime when someone types a wrong command.
Somehow, The textdraw isn't showing... Whenever someone types a wrong command, nothing happens.
I tried changing this
to this
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?
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]);
}
I tried changing this
Код:
public HideWrongTD(playerid) { PlayerTextDrawHide(playerid, wrongcmd[playerid]); }
Код:
public HideWrongTD(playerid) { PlayerTextDrawDestroy(playerid, wrongcmd[playerid]); }
This is irritating, any kind of help would be appreciated?