Dialog isn't showing...
#2

Try this :
Код:
CMD:request(playerid,params[])
{
    new OrgsCount = dini_Int(AddDirFile(dir_orgfiles, FILE_OSTATS), "max_org");
    if(isnull(params))
    {
        new string[1000], fstring[128], dstring[1028];
        for(new org =1; 1 < OrgsCount + 1; org++)
        {
            format(fstring,sizeof(fstring),"ORG%d", org);
            strcat(string,fstring,sizeof(string));
            if(!dini_Exists(AddDirFile(dir_orgfiles, fstring)))
            if(adlvl[playerid]>= 3) format(dstring, sizeof(dstring), "%s\n{%s}%s (%d)\n", dstring, dini_Get(AddDirFile(dir_orgfiles,fstring), "color"), dini_Get(AddDirFile(dir_orgfiles,fstring), "name"), org);
            else format(fstring, sizeof(fstring), "%s\n{%s}%s\n", dstring, dini_Get(AddDirFile(dir_orgfiles, fstring), "color"), dini_Get(AddDirFile(dir_orgfiles, fstring), "name"), org);
            ShowPlayerDialog(playerid, DIALOG_ORG_REQUEST, DIALOG_STYLE_LIST, "Select an organization to join.", string, "Select", "Cancel");
        }
    }
    else
    {
        if(orgReq[playerid] > 0) return SendClientMessage(playerid, COLOR_ORANGE, "You already requesting to join an organization.");
        if(GetPVarInt(playerid, "playerorg") != 0) return SendClientMessage(playerid, COLOR_ORANGE, "You already belong to an organization.");
        if(DoesPlayerHaveMenuOpen(playerid) || GetPlayerDialog(playerid) != -1) return SendClientMessage(playerid, COLOR_WHITE, "SERVER: Please exit your current menu first.");
        if(OrgsCount == 0) return SendClientMessage(playerid, COLOR_SILVER, "There are currently no existing organizations.");
    }
    return 1;
}
Reply


Messages In This Thread
Dialog isn't showing... - by Tass007 - 02.04.2016, 07:38
Re: Dialog isn't showing... - by fuckingcruse - 02.04.2016, 08:31
Re: Dialog isn't showing... - by Tass007 - 02.04.2016, 09:09
Re: Dialog isn't showing... - by Vince - 02.04.2016, 10:11
Re: Dialog isn't showing... - by Tass007 - 02.04.2016, 10:40
Re: Dialog isn't showing... - by SamJust - 02.04.2016, 11:13
Re: Dialog isn't showing... - by Tass007 - 02.04.2016, 21:31

Forum Jump:


Users browsing this thread: 1 Guest(s)