30.07.2012, 06:34
The code you gave look fine but where should I add the CheckTD in my code?
I tried: But the td is not showing at all
I tried: But the td is not showing at all
pawn Код:
CMD:text(playerid,params[])
{
if(!IsAdmin(playerid, 1)) return ErrorMsg(playerid);
new announce[41];
if(sscanf(params,"s[256]", announce)) return Usage(playerid, "/text [message]");
if(!InUse)
{
TextDrawSetString(AnnText, CheckTD(announce));
TextDrawShowForAll(AnnText);
SetTimer("TextTime",4000,false);
InUse = true;
}
else
{
SendClientMessage(playerid, COLOR_RED, "Text already in use!");
}
AdminMessage(playerid, "/text");
return 1;
}
}