17.06.2016, 19:18
Code:
if(dialogid == CMD_DIALOG) { if(response) { if(listitem == 0) { new id, string[1028]; sscanf(params, "u", id); if (isnull(params)) { format(string, sizeof(string), "Soldier %s\nScore: %d\nMoney: $%d\nKills: %d\nDeaths: %d\nRatio: %0.2f\nRank: %s\nAdmin Level: %d\nVip Level: %d\nHelper: %d",PlayerName(playerid), GetPlayerScore(playerid), GetPlayerMoney(playerid), PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], Float:PlayerInfo[playerid][pKills]/Float:PlayerInfo[playerid][pDeaths], GetRankName(playerid), PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pVIP], PlayerInfo[playerid][pHelper]); ShowPlayerDialog(playerid,13,DIALOG_STYLE_MSGBOX,"informacion", string, ">>",""); return 1; } } } if(listitem == 1) (..................code.........code.....code.......code......)