09.10.2012, 15:04
Quote:
'error 017: undefined symbol "inputtext"' |
Quote:
CMD ![]() { new iFac = arrFaction[playerid][g_iFactionID], weapons; if(arrFaction[playerid][p_iMember] == 12 || arrFaction[playerid][p_iMember] == 11) { if(sscanf(params, "d", weapons)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setfactionweapons [weaponid]"); arrFaction[iFac][g_iLockerGuns] = weapons; CreateDynamicFaction(weapons); SendClientMessage(playerid, COLOR_WHITE, "You have changed the weapon ID's for your faction."); } else SendClientMessage(playerid, COLOR_WHITE, "You are not authorized to use that command!"); return 1; } |
Quote:
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) { /*format(string, sizeof(string), "%s - $320", WeaponNames[4]); ShowPlayerDialog(playerid, DIALOG_FACWEPS, DIALOG_STYLE_LIST, "Faction Locker", string, "Select", "Cancel");*/ new str[5];GetWeaponName(inputtext, 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; } |