[HELP]Stats and kill bugs ID 0
#1

Why would anyone type/kill or he died himself always assumes that the id 0 kills when it is not!
and
why everyone else type / stats that will appear always id 0

please give me solution for this
Reply
#2

Please help
Reply
#3

help please
Reply
#4

How the hell do you think we can help you without any code?
Reply
#5

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
How the hell do you think we can help you without any code?
this for /stats
Код:
#if defined USE_STATS

CMD:stats(playerid,params[]) {
	new string[128], pDeaths, player1, h, m, s;
	if(!strlen(params)) player1 = playerid;
	else player1 = strval(params);

	if(IsPlayerConnected(player1)) {
	    TotalGameTime(player1, h, m, s);
 		if(PlayerInfo[player1][Deaths] == 0) pDeaths = 1; else pDeaths = PlayerInfo[player1][Deaths];
 		format(string, sizeof(string), "| %s's Stats:  Kills: %d | Deaths: %d | Ratio: %0.2f | Money: $%d | Time: %d hrs %d mins %d secs |",PlayerName2(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/Float:pDeaths,GetPlayerMoney(player1), h, m, s);
		return SendClientMessage(playerid, green, string);
	} else return SendClientMessage(playerid, red, "Player Not Connected!");
}
#endif
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)