[Ajuda] Carregar informaзхes
#6

Resolvido!

pawn Код:
CMD:perfil(playerid, params[]) {
    format(arquivo, sizeof(arquivo), "%s.ini", pnome(playerid));
    new matou, str[128], morreu, sex, dinheirop, skin;
    skin = GetPlayerSkin(playerid);
    matou = DOF2_GetInt(arquivo,"Matou");
    morreu = DOF2_GetInt(arquivo,"Morreu");
    sex = DOF2_GetInt(arquivo,"Sexo");
    dinheirop = DOF2_GetInt(arquivo,"Dinheiro");
    format(str, sizeof(str), "Perfil de: {FF0000}%s\n{FFFFFF}Matou: %d\nMorreu: %d\nSexo: %s\nSkin: %d\nDinheiro: %d", pnome(playerid), matou, morreu, (sex == 1 ? "Masculino" : sex == 2 ? "Feminino" : ""), skin, dinheirop);
    ShowPlayerDialog(playerid, DialogBoxEx, DIALOG_STYLE_MSGBOX, "===== Perfil =====", str, "OK", "");
    return 1;
}
Espero ter ajudado!
Reply


Messages In This Thread
[Ajuda] Carregar informaзхes - by [XPG]MarlonCS - 01.07.2012, 01:42
Re: [Ajuda] Carregar informaзхes - by Bruno Pereira - 01.07.2012, 01:47
Re: [Ajuda] Carregar informaзхes - by [XPG]MarlonCS - 01.07.2012, 01:55
Re: [Ajuda] Carregar informaзхes - by Bruno Pereira - 01.07.2012, 01:56
Re: [Ajuda] Carregar informaзхes - by [XPG]MarlonCS - 01.07.2012, 02:02
Re: [Ajuda] Carregar informaзхes - by StanleyScripter - 01.07.2012, 02:02
Re: [Ajuda] Carregar informaзхes - by [XPG]MarlonCS - 01.07.2012, 02:05
Re: [Ajuda] Carregar informaзхes - by StanleyScripter - 01.07.2012, 02:07

Forum Jump:


Users browsing this thread: 1 Guest(s)