23.02.2016, 11:22
the timer won't start when i put any cmd, maybe u guys can help me out!
PHP код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
switch(success)
{
case 0:
{
new str[128];
//format(string, sizeof(string),"The command '%s' is not in the server database try using (/help).", cmdtext);
//return SendClientMessage(playerid,COLOR_WHITE,string);
format(str, sizeof(str), "The command '%s' is not in the server database try using (/help).", cmdtext);
Cmddraw1 = TextDrawCreate(28.000000, 435.000000, str);
TextDrawBackgroundColor(Cmddraw1, 255);
TextDrawFont(Cmddraw1, 1);
TextDrawLetterSize(Cmddraw1, 0.500000, 1.000000);
TextDrawColor(Cmddraw1, -10270806);
TextDrawSetOutline(Cmddraw1, 0);
TextDrawSetProportional(Cmddraw1, 1);
TextDrawSetShadow(Cmddraw1, 1);
TextDrawSetSelectable(Cmddraw1, 0);
TextDrawShowForPlayer(playerid, Cmddraw1);
TextDrawShowForPlayer(playerid, Cmddraw0);
SetTimer("Unkowncmdtimer", 5000, true);