• FAdmin code.
    1 replies, posted
I was wondering what the invalid arguments part of this means, since its an error I get and no one else seems to get it. [CODE] local function AddPrivilege(ply, cmd, args) 213 if not FAdmin.Access.PlayerHasPrivilege(ply, "SetAccess") then FAdmin.Messages.SendMessage(ply, 5, "No access!") return false end 214 215 local group, priv = args[1], args[2] 216 if not FAdmin.Access.Groups[group] or not FAdmin.Access.Privileges[priv] then 217 FAdmin.Messages.SendMessage(ply, 5, "Invalid arguments") 218 return false 219 end 220 221 FAdmin.Access.Groups[group].PRIVS[priv] = true 222 223 MySQLite.query("REPLACE INTO FADMIN_PRIVILEGES VALUES(" .. MySQLite.SQLStr(group) .. ", " .. MySQLite.SQLStr(priv) .. ");") 224 SendUserMessage("FAdmin_AddPriv", player.GetAll(), group, priv) 225 FAdmin.Messages.SendMessage(ply, 4, "Privilege Added!") 226 227 return true, group, priv 228 end[/CODE]
Either the group or the privilege you entered into the command does not exist.
Sorry, you need to Log In to post a reply to this thread.