04.04.2014, 03:53
Script :
Bug : Not Shown when type /stats or /stats [playerid].
The problem is the dialogs dont show.
Tried everything but it won't work.
Please Help Me to Fix This !!!
I'll Give some +REP if you can helping me.
*SorryForMyLittleEnglish
Код:
CMD:stats(playerid,params[]) { new stats[876], sstring[876], pDeaths, player1, h, m, s; if(isnull(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(sstring,sizeof(sstring),"Stats for %s (ID: %d):\n\nNama : %s\nLevel : %d\nRank : %d\nMoney : $%d\nBank : $%d\n\nKills : %d\nDeaths : %d\nRatio : %0.2f\n\nTime Played : %d hours %d minutes %d seconds", PlayerName2(player1),playerid,PlayerName2(player1),PlayerInfo[player1][Level],GetRankFromLevel(playerid),GetPlayerMoney(player1),PlayerInfo[player1][bank],PlayerInfo[player1][Kills],PlayerInfo[player1][Deaths],Float:PlayerInfo[player1][Kills]/Float:pDeaths, h, m, s); strcat(stats,sstring); return ShowPlayerDialog(playerid,44406,DIALOG_STYLE_MSGBOX,"Stats!",stats,"Close",""); } else return SendClientMessage(playerid, red, "Player Not Connected!"); }
The problem is the dialogs dont show.
Tried everything but it won't work.
Please Help Me to Fix This !!!
I'll Give some +REP if you can helping me.
*SorryForMyLittleEnglish