ratio td once again not working !
#1

I did that on OnPlayerDeath

Код:
	// Kills Deaths & Ratio TD.
	PlayerKills[killerid]++; // Addes a score to player killed.
	PlayerDeaths[playerid]++; // Addes a score to player death.
	new iString[100]; // string cells.
	new Float:ratio = PlayerKills[playerid]/PlayerDeaths[playerid];
	format(iString, sizeof iString, "Kills: %i", PlayerKills[killerid]); // Here we put the amout of Killed players.
	TextDrawSetString(KILLS[killerid], iString);
	format(iString, sizeof iString, "Deaths: %i", PlayerDeaths[playerid]); // Here we put the amout of Deaths.
	TextDrawSetString(DEATHS[playerid], iString);
	format( iString, sizeof( iString ), "Ratio: %.2f", ratio);
	TextDrawSetString(RATIO[playerid], iString);
https://i.imgur.com/ishmaxh.png
Reply


Messages In This Thread
ratio td once again not working ! - by wallen - 29.01.2018, 17:46
Re: ratio td once again not working ! - by Mugala - 29.01.2018, 20:05
Re: ratio td once again not working ! - by wallen - 30.01.2018, 13:59
Re: ratio td once again not working ! - by ISmokezU - 30.01.2018, 15:56
Re: ratio td once again not working ! - by wallen - 30.01.2018, 17:42
Re: ratio td once again not working ! - by poxer - 30.01.2018, 19:55

Forum Jump:


Users browsing this thread: 3 Guest(s)