SA-MP Forums Archive
Rereshing 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: Rereshing Textdraws (/showthread.php?tid=469206)



Rereshing Textdraws - edzis84 - 12.10.2013

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);



Re: Rereshing Textdraws - Patrick - 12.10.2013

Try to update it using a timer.


Re: Rereshing Textdraws - edzis84 - 12.10.2013

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


Re: Rereshing Textdraws - edzis84 - 12.10.2013

Anyone?