[HELP] Using Variables in TextDraws
#1

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..
Reply
#2

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

Use them in a combination.
Reply
#3

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?
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)