SA-MP Forums Archive
[HELP] Using Variables in TextDraws - 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] Using Variables in TextDraws (/showthread.php?tid=412553)



[HELP] Using Variables in TextDraws - ServerScripter - 02.02.2013

Hi , I wanna make some textDraws with variables like number of kills :

Kills : %d

but didnt find any tutorial about creating it , any Ideas ?

thanks..


Re: [HELP] Using Variables in TextDraws - IstuntmanI - 02.02.2013

https://sampwiki.blast.hk/wiki/format
https://sampwiki.blast.hk/wiki/TextDrawSetString
https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer

Use them in a combination.


Re: [HELP] Using Variables in TextDraws - ServerScripter - 02.02.2013

ok , I have textdraw0 with the text :
Код:
Kills :
I want to attach a variable %d in the right of Kills looks like Kills: %d how to attach a variable to a textdraw and make it near it?


Re: [HELP] Using Variables in TextDraws - dr.lozer - 02.02.2013

format(string,128,"Kills: %d",YourKillVariable);
TextDrawSetString(textdraw, string);


Re: [HELP] Using Variables in TextDraws - ServerScripter - 02.02.2013

THank you all it works ! but I dont know if there is a simple way im not speaking about your codes but the way that ive put the code..