[HELP]Guys Can you Mix Both the dialog into one?Please help brothers.
#9

pawn Код:
CMD:gstats(playerid,params[])
{
    new string[500], id;
    sscanf(params, "u", id);
    if (isnull(params))
    {
        if(PlayerInfo[playerid][gangid] != PlayerInfo[i][gangid])
        {
            format(string, sizeof(string), "{00FF00}%s\n\n{00FF00}General:\n\n{FFFFFF}Gang Id :\t%d\nGang Score :\t%d\nGangOwner :\t%s\n\n{00FF00}Online Members :\n",Pinfo[playerid][gname],Pinfo[playerid][gid],Pinfo[playerid][gscore],Pinfo[playerid][gowner]);
            return ShowPlayerDialog(playerid,9982,DIALOG_STYLE_MSGBOX,"Gang Stats.",string,"Ok","");
        }
        else if(PlayerInfo[playerid][gangid] == PlayerInfo[i][gangid])
        {
            new string[300];
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                format(string, sizeof(string), "{00FF00}%s\n\n{00FF00}General:\n\n{FFFFFF}Gang Id :\t%d\nGang Score :\t%d\nGangOwner :\t%s\n\n{00FF00}Online Members :\n%s\n%s - Level :: %d",Pinfo[playerid][gname],Pinfo[playerid][gid],Pinfo[playerid][gscore],Pinfo[playerid][gowner],string, GetName(i),PlayerInfo[i][glevel]);
            }
            return ShowPlayerDialog(playerid,9982,DIALOG_STYLE_MSGBOX,"Gang Stats.",string,"Ok","");
        }
    }
    else if(IsPlayerConnected(id))
    {
        format(string, sizeof(string), "{00FF00}%s\n\n{00FF00}General:\n\n{FFFFFF}Gang Id :\t%d\nGang Score :\t%d\nGangOwner :\t%s\n\n{00FF00}Online Members :\n",Pinfo[playerid][gname],Pinfo[id][gid],Pinfo[id][gscore],Pinfo[id][gowner]);
        return ShowPlayerDialog(playerid,9982,DIALOG_STYLE_MSGBOX,"gang Stats.",string,"Ok","");
    }
    return 1;
}
Try this.
Reply


Messages In This Thread
Solved - by Guest4390857394857 - 17.04.2014, 13:26
Re: [HELP]Guys Can you Mix Both the dialog into one?Please help brothers. - by iThePunisher - 17.04.2014, 13:39
Re: [HELP]Guys Can you Mix Both the dialog into one?Please help brothers. - by Guest4390857394857 - 17.04.2014, 13:58
Re: [HELP]Guys Can you Mix Both the dialog into one?Please help brothers. - by Guest4390857394857 - 17.04.2014, 16:21
Re: [HELP]Guys Can you Mix Both the dialog into one?Please help brothers. - by Guest4390857394857 - 18.04.2014, 06:30
Re: [HELP]Guys Can you Mix Both the dialog into one?Please help brothers. - by taylorcro - 18.04.2014, 06:36
Re: [HELP]Guys Can you Mix Both the dialog into one?Please help brothers. - by Guest4390857394857 - 18.04.2014, 06:37
Re: [HELP]Guys Can you Mix Both the dialog into one?Please help brothers. - by Conradus - 18.04.2014, 06:52
Re: [HELP]Guys Can you Mix Both the dialog into one?Please help brothers. - by Hanuman - 18.04.2014, 07:02
Re: [HELP]Guys Can you Mix Both the dialog into one?Please help brothers. - by Guest4390857394857 - 18.04.2014, 07:26

Forum Jump:


Users browsing this thread: 1 Guest(s)