- 0
/stats
-
Similar Content
-
- 1 answer
- 466 views
-
- 2 replies
- 415 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Deejaybwg
Am adaugat cate ceva in comanda /stats:
Comanda:
[pawn]dcmd_stats(playerid,params[]) {
new string[428], pDeaths, 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];
if(AccInfo[player1][score] == 0) pScores = 1; else pScores = AccInfo[player1][score]
if(AccInfo[player1][Admin Level] == 0) pAdmin Level = 1; else pAdmin Level = AccInfo[player1][Admin Level]
if(AccInfo[player1][VIP Level] == 0) pVIP Level = 1; else pVIP Level = AccInfo[player1][VIP Level]
if(AccInfo][player1][skin] == 0) pSkin = 1; else pSkin = AccInfo[player1]Skin]
format(string, sizeof(string), "| {FFFFFF}%s{00C0FF}'s Stats \n{FFFFFF}Player Kills: {00C0FF}%d \n{FFFFFF}Player Deaths: {00C0FF}%d \n{FFFFFF}Player Ratio: %0.2f \n{FFFFFF}Player Money: {00C0FF}$%d \nPlayer Score: {00C0FF}%d \n{FFFFFF}Player Skin: {00C0FF}%d \n{FFFFFF}Player Time: \n{FFFFFF}%d{FFAF00}*{FFAF00}hrs \n{FFFFFF}%d{FFAF00}*{FFFFFF}mins \n{FFFFFF}%d{FFAF00}*{FFAF00}secs \n{FFFFFF}Admin Level - {00C0FF}%d \n{FFFFFF}VIP Level - {00C00FF}%d \n ",PlayerName2(player1), AccInfo[player1][Kills], AccInfo[player1][Deaths], Float:AccInfo[player1][Kills]/Float:pDeaths,AccInfo[player1][score],AccInfo[player1][Admin Level],AccInfo[player1][VIP Level],GetPlayerMoney(player1),GetPlayerScore(player1), h, m, s);
return ShowPlayerDialog(playerid, 758, 0, "Player Stats", string, "Ok", "");
} else return SendClientMessage(playerid, red, "Player Not Connected!");
}[/pawn]
Dupa compile:
C:\Users\Bwggu\Desktop\LuxAdmin.pwn(1648) : error 017: undefined symbol "Score"
C:\Users\Bwggu\Desktop\LuxAdmin.pwn(1648) : error 017: undefined symbol "pScores"
C:\Users\Bwggu\Desktop\LuxAdmin.pwn(1648) : warning 215: expression has no effect
C:\Users\Bwggu\Desktop\LuxAdmin.pwn(1648) : error 029: invalid expression, assumed zero
C:\Users\Bwggu\Desktop\LuxAdmin.pwn(1648) : fatal error 107: too many error messages on one line
Nu am reusit sa rezolv.. As vrea sa mearga bine /stats si sa nu mai dea erori/warn-uri.
www.youtube.com/thebwgg
Link to comment
Share on other sites
10 answers to this question
Recommended Posts