Stats dialog
#3

Quote:

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 Statisztika: цlйs: %d | halбl: %d | arбny: %0.2f | pйnz: $%d | nap: %d уra %d perc %d mp |",PlayerName2(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/FloatDeaths,GetPlayerMoney(player1), h, m, s);
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX, "States", String, "Ok", "Cancel");
} else return SendClientMessage(playerid, red, "HIBA: jбtйkos nincs csatlakozva!");
}

errors:
fatal error 107: too many error messages on one line
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
error 029: invalid expression, assumed zero
Reply


Messages In This Thread
Stats dialog - by Neon1 - 07.11.2014, 08:57
Re: Stats dialog - by UltraScripter - 07.11.2014, 09:40
Re: Stats dialog - by Neon1 - 07.11.2014, 09:54
Re: Stats dialog - by UltraScripter - 07.11.2014, 10:08
Re: Stats dialog - by UltraScripter - 07.11.2014, 10:10
Re: Stats dialog - by UltraScripter - 07.11.2014, 10:13
Re: Stats dialog - by dominik523 - 07.11.2014, 10:20
Re: Stats dialog - by UltraScripter - 07.11.2014, 10:29
Re: Stats dialog - by Neon1 - 07.11.2014, 10:38
Re: Stats dialog - by UltraScripter - 07.11.2014, 10:40

Forum Jump:


Users browsing this thread: 1 Guest(s)