SA-MP Forums Archive
Help with a textdraw - 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)
+--- Thread: Help with a textdraw (/showthread.php?tid=327120)



Help with a textdraw - Azzeto - 19.03.2012

Hey, I need help with my textdraw.. I have it so it'll show the player Kills and Deaths.. But when the player stats update.. The new number just lays over the old one. How can I have it delete the old number and add the new one so the 'ghost' of the old number isn't under the new one? Thanks, sorry if you don't understand the question.


Re: Help with a textdraw - Jonny5 - 20.03.2012

post the textdraw code.


how are you updating the text?


Re: Help with a textdraw - Skribblez - 20.03.2012

i assume that you're creating a new textdraw whenever kills and deaths increase. for that, try using "TextDrawSetString" in "OnPlayerDeath" which allows you to know who the killer is and who died.


Re: Help with a textdraw - new121 - 20.03.2012

ok wherever you have ShowTextDrawForPlayer for the new kills text draw put HideTextDrawForPlayer above it


Re: Help with a textdraw - Azzeto - 20.03.2012

Thanks skribblez, helped a lot. Repped.


Re: Help with a textdraw - Skribblez - 20.03.2012

Quote:
Originally Posted by Azzeto
Посмотреть сообщение
Thanks skribblez, helped a lot. Repped.
no problem, thanks for the rep too.