Setting a name for an ID? +rep
#10

PHP код:
CMD:testlocker(playeridparams[])
{
new 
string[256], iFac arrFaction[playerid][g_iFactionID];
if(
arrFaction[playerid][p_iMember] > 0)
{
if(
arrFaction[iFac][g_iLockerGuns] == 0)
{
SendClientMessage(playeridCOLOR_WHITE"Your faction lockers have no weapons in them!");
}
if(
arrFaction[iFac][g_iLockerGuns] > 0)
{
new 
str[5];GetWeaponName(arrFaction[iFac][g_iLockerGuns], strsizeof(str));
format(stringsizeof(string), "%s - Get weapon"str);
ShowPlayerDialog(playeridDIALOG_FACWEPSDIALOG_STYLE_LIST"Faction Locker"string"Select""Cancel");
}
}
else 
SendClientMessage(playeridCOLOR_WHITE"You are not in a faction!");
return 
1;

i dont know what variable your using
i think is this arrFaction[iFac][g_iLockerGuns] ?
so try the code.
Reply


Messages In This Thread
Setting a name for an ID? +rep - by RLGaming - 08.10.2012, 22:29
Re: Setting a name for an ID? +rep - by park4bmx - 08.10.2012, 22:44
Re: Setting a name for an ID? +rep - by ReneG - 08.10.2012, 22:44
Re: Setting a name for an ID? +rep - by RLGaming - 08.10.2012, 23:30
Re: Setting a name for an ID? +rep - by vIBIENNYx - 09.10.2012, 03:41
Re: Setting a name for an ID? +rep - by zSuYaNw - 09.10.2012, 06:33
Re: Setting a name for an ID? +rep - by RLGaming - 09.10.2012, 06:57
Re: Setting a name for an ID? +rep - by park4bmx - 09.10.2012, 09:05
Re: Setting a name for an ID? +rep - by RLGaming - 09.10.2012, 15:04
Re: Setting a name for an ID? +rep - by park4bmx - 09.10.2012, 19:35

Forum Jump:


Users browsing this thread: 1 Guest(s)