SA-MP Forums Archive
Textdraw show bad nickname - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraw show bad nickname (/showthread.php?tid=65280)



Textdraw show bad nickname - fiordas - 11.02.2009

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



Re: Textdraw show bad nickname - SuperS0nic - 11.02.2009

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. ?



Re: Textdraw show bad nickname - fiordas - 11.02.2009

Thanks it works.