Textdraw?
#1

Hello, I'm trying to make a dynamic Textdraw .. like /changetxtdraw TEXT,,

/changetxtdraw HELLO WORLD.. will replace my old textdraw with HELLO WORLD.. How can I do this? I tried to do that, but nothing happens..

pawn Код:
CMD:changetxtdraw(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid))
    {
        new inputstring[256];
        if(sscanf(params, "s[256]", inputstring)) return SendClientMessage(playerid, COLOR_GREY, "CMD: /changetxtdraw [Text]");
        {
            //TextDrawDestroy(Text:Whitney0);
            TextDrawCreate(511.000000, 139.000000, inputstring);
        }
    }
    return 1;
}
Reply
#2

Just TextDrawSetString. No need to destroy and re-create the textdraw.
Reply
#3

Код:
TextDrawSetString(TextDrawID, string[]);
Reply
#4

Oh, thanks a lot! I'll be testing it and see if it works or not ^^.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)