17.02.2012, 20:00
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..
/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;
}