Textdraw Question
#3

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
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;
}
}
Reply


Messages In This Thread
Textdraw Question - by andrew2695 - 29.07.2012, 23:40
Re: Textdraw Question - by Sniper Kitty - 30.07.2012, 03:40
Re : Textdraw Question - by andrew2695 - 30.07.2012, 06:34

Forum Jump:


Users browsing this thread: 1 Guest(s)