Round stats text getting over-layed.
#3

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
I am wondering, which new Textdraw ?
You got some textdraw and than you just use TextDrawSetString to overwrite the existing text

Also any event related thing should be put where the event is handled

=> If someone gets a kill it should be OnPlayerDeath, after you increase the kill counter check for the new highest killer
Thanks, here's the code under OnPlayerSpawn:
Код:
        new Text:messagetextdraw;
	new topkillermessage[256];
	new highestkillerid = GetHighestKiller();
	GetPlayerName(highestkillerid, playername, sizeof(playername));
	format(topkillermessage, sizeof(topkillermessage), "%s has the most amount of kills.", playername);
	TextDrawSetString(messagetextdraw,topkillermessage);
	TextDrawShowForPlayer(playerid, messagetextdraw);
Do you have any idea on how to update that string every time a new highestkillerid is obtained?
Reply


Messages In This Thread
Round stats text getting over-layed. - by Lofti - 23.07.2015, 21:32
AW: Round stats text getting over-layed. - by Nero_3D - 23.07.2015, 22:56
Re: AW: Round stats text getting over-layed. - by Lofti - 24.07.2015, 02:14
AW: Round stats text getting over-layed. - by Nero_3D - 24.07.2015, 11:24
Re: AW: Round stats text getting over-layed. - by Lofti - 24.07.2015, 23:37
AW: Round stats text getting over-layed. - by Nero_3D - 25.07.2015, 00:53
Re: AW: Round stats text getting over-layed. - by Lofti - 25.07.2015, 01:26
AW: Re: AW: Round stats text getting over-layed. - by Nero_3D - 25.07.2015, 10:13
Re: AW: Re: AW: Round stats text getting over-layed. - by Lofti - 26.07.2015, 23:24

Forum Jump:


Users browsing this thread: 3 Guest(s)