09.10.2012, 19:35
PHP код:
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[5];GetWeaponName(arrFaction[iFac][g_iLockerGuns], str, sizeof(str));
format(string, sizeof(string), "%s - Get weapon", str);
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;
}
i think is this arrFaction[iFac][g_iLockerGuns] ?
so try the code.