Small problem
#1

I presume this is a small fix, but I have this:
pawn Код:
CMD:testlocker(playerid, params[])
{
    new string[256], iFac = arrFaction[playerid][g_iFactionID];
    if(arrFaction[playerid][p_iMember] > 0)
    {
        if(arrFaction[iFac][g_iLockerGuns] == 0)
        {
            SendClientMessage(playerid, COLOR_WHITE, "Your faction lockers have no weapons in them!");
        }
        if(arrFaction[iFac][g_iLockerGuns] > 0)
        {
            new str[24];GetWeaponName(arrFaction[iFac][g_iLockerGuns], str, sizeof(str));
            format(string, sizeof(string), "%s - $%i", str, arrFaction[iFac][g_iLockerCost]);
            ShowPlayerDialog(playerid, DIALOG_FACWEPS, DIALOG_STYLE_LIST, "Faction Locker", string, "Select", "Cancel");
        }
    }
    else SendClientMessage(playerid, COLOR_WHITE, "You are not in a faction!");
    return 1;
}
And whenever I set for eg weapon slot 5 to id 24 it doesnt show up, it only shows weapon id 1 on the dialog? I have MAX_GROUP_WEAPONS under the enum:
Quote:

g_iLockerGuns[MAX_GROUPWEAPONS]

But how can I make all 16 guns show in the dialog?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)