K/D Ratio
#1

Hey, I'm trying to add a K/D ratio into /stats but for some reason it's not updating the ratio from the default 0.

Код:
CMD:stats(playerid, params[])
{
	new wstring[238];
	pInfo[playerid][pKD] = pInfo[playerid][pKills] /= pInfo[playerid][pDeaths];
	new kd = pInfo[playerid][pKD];
	new kills = pInfo[playerid][pKills];
	new deaths = pInfo[playerid][pDeaths];

	format(wstring, sizeof(wstring), "Kills:[%d] Deaths:[%d] K/D:[%d]",kills,deaths,kd);
	SendClientMessage(playerid,COLOR_WHITE, wstring);
	return 1;
}
Reply


Messages In This Thread
K/D Ratio - by Slepur - 06.08.2013, 15:20
Re: K/D Ratio - by Konstantinos - 06.08.2013, 15:26
Re: K/D Ratio - by Vince - 06.08.2013, 15:50
Re: K/D Ratio - by arjanforgames - 06.08.2013, 15:55

Forum Jump:


Users browsing this thread: 2 Guest(s)