Textdraw show bad nickname
#1

Hi, I have textdraw message system, but theres one problem. It shows nickname perfectly, but when i leave the server and change my name to another one it still shows first one and theres no matter how much time i change nickname it will still show first one. How can i fix that? Heres script:

pawn Код:
if (strcmp("/stunt", cmdtext, true, 10) == 0)
{
new player[24];
GetPlayerName(playerid,player,sizeof(player));
format(tmp,sizeof(tmp),"%s have joined /stunt",player,playerid);
Textdraw0 = TextDrawCreate(195.000000,429.000000,tmp);
TextDrawAlignment(Textdraw0,0);
TextDrawBackgroundColor(Textdraw0,0x000000ff);
TextDrawFont(Textdraw0,1);
TextDrawLetterSize(Textdraw0,0.399999,1.000000);
TextDrawColor(Textdraw0,0xffff0099);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawSetShadow(Textdraw0,1);
TextDrawShowForAll(Text:0);
SetTimer("TextHide", 5000, false);
return 1;
}
Reply
#2

I think it only gets 1 name at the moment and thats on the first person thats using the command.
shouldnt it just work if u did textdrawdestroy each time after 5 seconds. ?
Reply
#3

Thanks it works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)