SA-MP Forums Archive
again textdraw. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: again textdraw. (/showthread.php?tid=77488)



again textdraw. - Gamer007 - 11.05.2009

Ok the textdraw is working fine but the problem is when he kills a guy the textdraw doesn't update up and doesn't show his experience, is there any way to make a timer or something to update textdraw?


Re: again textdraw. - pspleo - 11.05.2009

If you're using TextDrawSetString without hiding>showing the textdraw that's maybe the problem.

Leopard


Re: again textdraw. - Gamer007 - 11.05.2009

yes i am using the string and i think the problem is when he gets experience i don't add the command textdrawhide and then show yes?


Re: again textdraw. - Gamer007 - 12.05.2009

hmm??


Re: again textdraw. - Think - 12.05.2009

show some code.


Re: again textdraw. - Gamer007 - 12.05.2009

the code is working fine but the textdraw doesn't update so i'm asking do ineed to do HIDE And then SHOW OnPlayerDeath after the EXP++ command?

or i need to do more something..


Re: again textdraw. - Think - 12.05.2009

just show the code, else we cant help you maybe you did something wrong.


Re: again textdraw. - Gamer007 - 13.05.2009

Код:
	pLevel[killerid][Nuzudymai]++;
	TextDrawHideForPlayer(playerid,Textdraw2);
	new string[256];
	format(string, sizeof(string), "Nuzudymai: %d", pLevel[playerid][Nuzudymai]);
	TextDrawShowForPlayer(playerid,Textdraw2);
i have put this in my onplayerdeath but it doesn't work


Re: again textdraw. - Djiango - 13.05.2009

You need to do TextDrawSetString, before showing it.


Re: again textdraw. - Weirdosport - 13.05.2009

I don't think you need to hide/show it but you definitely need to do TextDrawSetString!