How to make this textdraw work
#1

how to make this textdraw counting?

Reply
#2

Create a timer that calls a callback each second. Create a variable that stores the value of the number currently displayed and then just count up- /downwards with that variable and use "TextDrawSetString" to change the text of the textdraw.

Hint: If you want more specified answered, you will need to post some code and a more specificated question.
Reply
#3

Isnt that fps?
Reply
#4

Quote:
Originally Posted by Joron
Посмотреть сообщение
Isnt that fps?
Would guess that, too, although from his question and that image I can not say whether he is asking for what I've explained before, or whether how to get that fps "textdraw" shown
Reply
#5

Here my script

Код:
//at the top
             new Text:TextdrawLoadTime;
             forward TextdrawLoadTimeString(playerid);

//ongamemodeinit
	TextdrawLoadTime = TextDrawCreate(637.188598, 0.583329, "20");
	TextDrawLetterSize(TextdrawLoadTime, 0.309442, 1.279163);
	TextDrawAlignment(TextdrawLoadTime, 3);
	TextDrawColor(TextdrawLoadTime, 16711935);
	TextDrawSetShadow(TextdrawLoadTime, 0);
	TextDrawSetOutline(TextdrawLoadTime, 1);
	TextDrawBackgroundColor(TextdrawLoadTime, 51);
	TextDrawFont(TextdrawLoadTime, 1);
	TextDrawSetProportional(TextdrawLoadTime, 1);

//code
public TextdrawPlayerOnlineString(playerid)
{
	new string[128];
	format(string, sizeof(string), "%i",/*idontknow*/ );
	TextDrawSetString(Text:TextdrawLoadTime, string);
}]
how to make this textdraw counting from 20 second to 0 second?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)