#1

Hi
I added race score on my server when I set did not put the stats

Command:
Quote:

dcmd_stats(playerid, params[])
{
new file[256], player1, string[9999], s1[2024], s2[1024], s3[1504], s4[2034], P1Register[4], P1Logged[15], TimesOn;
if(!strlen(params)) player1 = playerid;
else player1 = strval(params);
new rank[20];
new rankid = pRank[playerid];
if(pRank[playerid] == 0) { rank = "Newbie"; }
else if(pRank[playerid] == 1) { rank = "Baby Killa'"; }
else if(pRank[playerid] == 2) { rank = "Soldier"; }
else if(pRank[playerid] == 3) { rank = "Gangsta'"; }
else if(pRank[playerid] == 4) { rank = "Underboss"; }
else if(pRank[playerid] == 5) { rank = "Tha' Boss"; }
GetPlayerName(player1, pname, MAX_PLAYER_NAME);
new year,month,day; getdate(year, month, day);
format(file,sizeof(file),PLAYERFILE5,udb_encode(Pl ayerName2(playerid)));
if (!udb_Exists(PlayerName2(playerid))) return SendClientMessage(playerid,red,"ACCOUNT: Nu aveti cont pe server !!!Va rugam inregistrativa !!! <'/register [password]'>.");
if(udb_Exists(PlayerName2(playerid))) P1Register = "Yes"; else P1Register = "No";
if(PlayerInfo[playerid][LoggedIn] == 1) P1Logged = "{33FF33}Yes"; else P1Logged = "No";
if(IsPlayerConnected(player1)) {
TimesOn = dUserINT(PlayerName2(player1)).("TimesOnServer");
format(s1, sizeof(s1), "\n{0049FF}General Statistic \n{FFFFFF}»{6EF83C}Player Money: {FFFFFF}${FFAF00}%d\n{FFFFFF}»{6EF83C}Player Score: {FFAF00}%d\n{FFFFFF}»{6EF83C}Coins{33FF33}({FFFFFF }Monede{33FF33}): {FFAF00}%d\n{FFFFFF}»{6EF83C}Player Deaths: {FFAF00}%d\n{FFFFFF}»{6EF83C}Player Logged: {FFAF00}%s\n{FFFFFF}»{6EF83C}Player Registered: {FFAF00}%s\n{FFFFFF}»{6EF83C}Player Skin: {FFAF00}%d\n{FFFFFF}»{6EF83C}Player Visits: {FFAF00}%d "
,GetPlayerMoney(player1),GetPlayerScore(player1),P Info[player1][Coins],PInfo[player1][Deaths],P1Logged,P1Register,GetPlayerSkin(player1),TimesO n);
format(s2, sizeof(s2), "\n{0049FF}Inportant Statistic \n{FFFFFF}»{6EF83C}Play Time: \n\t {FFAF00}%d {FFFFFF}•{6EF83C}Hours\n\t{FFAF00} %02d {FFFFFF}•{6EF83C}Minutes \n\t{FFAF00} 30 {FFFFFF}•{6EF83C}Seconds \n{FFFFFF}»{6EF83C}Admin Level: {FFAF00}%d\n{FFFFFF}»{6EF83C}V.I.P Level: {FFAF00}%d\n{FFFFFF}»{6EF83C}R.Vip: {FFAF00}%d ",PInfo[player1][HoursPlayed], PInfo[player1][MinutesPlayed],PlayerInfo[player1][Level],PlayerInfo[player1][Vip],PInfo[player1][rVip]);
format(s3, sizeof(s3), "\n{0049FF}Killer Statistic \n{FFFFFF}»{6EF83C}Player Kills: {FFAF00}%d \n{FFFFFF}»{6EF83C}Ratio: {FFAF00}%0.2f\n{FFFFFF}»{6EF83C}Rank: {FFAF00}[%d]%s \n{FFFFFF}»{6EF83C}KillingSpree: {FFAF00}%d\n{FFFFFF}»{6EF83C}Best KillingSpree: {FFAF00}%d\n{FFFFFF}»{6EF83C}Warnings: {FFAF00}%d ",PInfo[player1][Kills],Float:PInfo[player1][Kills]/Floateaths, rankid, rank,P1Register,KillingSpree{ player1 },bKillingSpree{ player1 },PlayerInfo[player1][Warnings]);
format(s4, sizeof(s4), "\n{0049FF}Statistic from Score\n{FFFFFF}»{6EF83C}Race Points: {FFAF00}%d\n{FFFFFF}»{6EF83C}Duel Points: {FFAF00}%d\n{FFFFFF}»{6EF83C}Stunt Points: {FFAF00}%d \n\n\n",PInfo[player1][Racer],PInfo[player1][Stuntr],PInfo[player1][Duelr]);
format(string, sizeof(string),"\n\t{0049FF}%s{33FF33}'s Stats {FFFFFF}Statistics:\n%s\n%s\n%s\n%s\n%s", pname, s1, s2, s3, s4);
return ShowPlayerDialog(playerid, 9999, 0, "{FFFFFF}Player Statistics", string, "» Ok «", "Description");
} else return SendClientMessage(playerid, red, "Jucatorul nu este Conectat!");
}

Reply
#2

Does anyone know?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)