Rereshing Textdraws
#1

Hey, i'm having a following problem.

When i press Rbutton it adds 1 to my ModName[playerid] but its not showing it on my textdraw Name[playerid]
Only when i redo the command it shows me the value of Name[playerid]

So how can i make that it updates my textdraw on each click?

Код:
		if(playertextid == RButton[playerid])
		{
			ModName[playerid]++;
			SCM(playerid,-1,"++");
This is the command

Код:
format(mnam, sizeof(mnam), "%d",ModName[playerid]);
		TextDrawSetString(Name[playerid], mnam);
Reply
#2

Try to update it using a timer.
Reply
#3

Had idea about that but if i click my arrow 100 times very fast, then it can bug, so i need other way.
Reply
#4

Anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)