Quote:
Originally Posted by Jonny5
im sorry what title?
|
Here
Код:
dcmd_stats(playerid,params[])
{
new string[256];
new pDeaths;
new player1, h, m, s;
if(!strlen(params)) player1 = playerid;
else player1 = strval(params);
if(IsPlayerConnected(player1))
{
TotalGameTime(player1, h, m, s);
if(AccInfo[player1][Deaths] == 0) pDeaths = 1;
else pDeaths = AccInfo[player1][Deaths];
format(string, sizeof(string), "\t{008A2E}%s's {CCCCCC}Statistics",PlayerName2(player1));
new statstring[256];
format(statstring, sizeof(statstring), "{99CCFF}Admin Level: %d \n\nScore: %d \n\nKills: %d \n\nDeaths: %d \n\nRatio: %0.2f \n\nMoney: $%d \n\nTime: %d Hours %d Minutes and %d Seconds ", AccInfo[player1][Level], GetPlayerScore(playerid), AccInfo[player1][Kills], AccInfo[player1][Deaths], Float:AccInfo[player1][Kills]/Float:pDeaths, GetPlayerMoney(player1), h, m, s);
ShowPlayerDialog(playerid,12767,DIALOG_STYLE_MSGBOX,string,statstring ,"Close","");
return 0;
} else
return SendClientMessage(playerid, red, "ERROR: Player Not Connected!");
}
/t Let Lists In The Middle Or Let's say it is a TAB
When i add \t nothing happen. it dont move.