[HELP] Need help - kill/death textdraw
#9

Quote:
Originally Posted by John Rockie
Change This
Код:
format(string, sizeof(string), "~r~Deaths ~b~%d~w~ - ~g~Kills ~b~%d" , kill[playerid], Death[playerid]);
To
Код:
format(string, sizeof(string), "~g~Kills~b~%d~w~ - ~r~Deaths ~b~%d" , kill[playerid], Death[playerid]);
Simple Mistake there
Really, thanks for your attention.

The whole code again:

Код:
//At the top
new Text:LoggedInAs[MAX_PLAYERS];
new kill[MAX_PLAYERS];
new Death[MAX_PLAYERS];

//at OnPlayerConnect
LoggedInAs[playerid] = TextDrawCreate(497.000000,111.000000, " ");
//+ some other crap for the textdraw. (Proportional etc.)
CheckLoggedInAs(playerid);


//at OnPlayerDisconnect
TextDrawDestroy(LoggedInAs[playerid]);

//at OnPlayerSpawn
TextDrawShowForPlayer(playerid,LoggedInAs[playerid]);

//Then here at OnPlayerDeath

kill[killerid]++;
Death[playerid]++;
CheckLoggedInAs(playerid);

//And...

stock CheckLoggedInAs(playerid)
{
	new string[128];
	format(string, sizeof(string), "~r~Deaths ~b~%d~w~ - ~g~Kills ~b~%d", Death[playerid], kill[playerid]);
 	TextDrawSetString(Text:LoggedInAs[playerid], string);
	return 1;
}
Reply


Messages In This Thread
[HELP] Need help - kill/death textdraw - by Striker_Moe - 20.10.2009, 16:52
Re: [HELP] Need help - kill/death textdraw - by Streetplaya - 20.10.2009, 16:54
Re: [HELP] Need help - kill/death textdraw - by Striker_Moe - 20.10.2009, 17:06
Re: [HELP] Need help - kill/death textdraw - by Striker_Moe - 20.10.2009, 17:34
Re: [HELP] Need help - kill/death textdraw - by juanrivas - 01.01.2010, 22:56
Re: [HELP] Need help - kill/death textdraw - by MerLow - 01.01.2010, 23:21
Re: [HELP] Need help - kill/death textdraw - by John Rockie - 01.01.2010, 23:33
Re: [HELP] Need help - kill/death textdraw - by dice7 - 01.01.2010, 23:41
Re: [HELP] Need help - kill/death textdraw - by MerLow - 01.01.2010, 23:44
Re: [HELP] Need help - kill/death textdraw - by John Rockie - 01.01.2010, 23:47

Forum Jump:


Users browsing this thread: 2 Guest(s)