Dialog Stats (ladmin)
#1

Hello , today i've tryed to make stats show in a dialog (ladmin) but didn't work , please if you have time help me to do it , this is the code from ladmin
Код:
dcmd_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!");
}
How can i make that to show in a dialog ?

Sorry for bad english , hope you understand what i mean.
Reply


Messages In This Thread
Dialog Stats (ladmin) - by Rock18 - 15.01.2011, 21:00
Re: Dialog Stats (ladmin) - by hanzen - 15.01.2011, 21:07
Re: Dialog Stats (ladmin) - by Rock18 - 15.01.2011, 21:13
Re: Dialog Stats (ladmin) - by hanzen - 15.01.2011, 21:15
Re: Dialog Stats (ladmin) - by Rock18 - 15.01.2011, 21:20
Re: Dialog Stats (ladmin) - by hanzen - 15.01.2011, 21:21
Re: Dialog Stats (ladmin) - by Rock18 - 15.01.2011, 21:24
Re: Dialog Stats (ladmin) - by hanzen - 15.01.2011, 21:24
Re: Dialog Stats (ladmin) - by Rock18 - 15.01.2011, 21:37
Re: Dialog Stats (ladmin) - by hanzen - 15.01.2011, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)