[ERROR] addons/darkrpmodification/lua/darkrp_config/settings.lua:150: unexpected symbol near '['
1. unknown - addons/darkrpmodification/lua/darkrp_config/settings.lua:0
What the eff does that say and how do I fix it.
[editline]23rd September 2014[/editline]
It only says ["STEAM_0:0:54582524"] = "superadmin", at line 150
What does that even mean?
You randomly put brackets around a SteamID, and then tried to assign a string to it?
Are you trying to use some sort of administration system? Which one?
What is it you are actually trying to accomplish?
Full code of the file. You really shouldn't be messing with a coding language if you don't even know what a string is.
[code]GM.Config.DefaultPlayerGroups = {
["STEAM_0:0:54582524"] = "superadmin",
["STEAM_0:0:11111111"] = "admin",
}[/code]
^^ Is the original
VV is what you should have
[code]GM.Config.DefaultPlayerGroups = {
["STEAM_0:0:54582524"] = "superadmin"
}[/code]
Remember the error may not be on that line cause of C multiline comments
Heres the full file
/*
Toggle settings
Set to true or false
*/
-- voice3D - Enable/disable 3DVoice is enabled
GM.Config.voice3D = true
-- AdminsCopWeapons - Enable/disable admins spawning with cop weapons
GM.Config.AdminsCopWeapons = true
-- allow people getting their own custom jobs
GM.Config.allowjobswitch = true
-- allowrpnames - Allow Players to Set their RP names using the /rpname command.
GM.Config.allowrpnames = true
-- allowsprays - Enable/disable the use of sprays on the server.
GM.Config.allowsprays = true
-- allowvehicleowning - Enable/disable whether people can own vehicles.
GM.Config.allowvehicleowning = true
-- allowvnocollide - Enable/disable the ability to no-collide a vehicle (for security).
GM.Config.allowvnocollide = false
-- alltalk - Enable for global chat, disable for local chat.
GM.Config.alltalk = false
-- autovehiclelock - Enable/Disable automatic locking of a vehicle when a player exits it.
GM.Config.autovehiclelock = false
-- babygod - people spawn godded (prevent spawn killing)
GM.Config.babygod = true
-- canforcedooropen - whether players can force an unownable door open with lockpick or battering ram or w/e
GM.Config.canforcedooropen = true
-- chatsounds - sounds are played when some things are said in chat
GM.Config.chatsounds = true
-- chiefjailpos - Allow the Chief to set the jail positions.
GM.Config.chiefjailpos = true
-- cit_propertytax - Enable/disable property tax that is exclusive only for citizens.
GM.Config.cit_propertytax = false
-- copscanunfreeze - Enable/disable the ability of cops to unfreeze other people's props
GM.Config.copscanunfreeze = true
-- copscanunweld - Enable/disable the ability of cops to unweld other people's props
GM.Config.copscanunweld = false
-- cpcanarrestcp - Allow/Disallow CPs to arrest other CPs.
GM.Config.cpcanarrestcp = true
-- currencyLeft - The position of the currency symbol. true for left, false for right.
GM.Config.currencyLeft = true
-- customjobs - Enable/disable the /job command (personalized job names).
GM.Config.customjobs = true
-- customspawns - Enable/disable whether custom spawns should be used.
GM.Config.customspawns = true
-- deathblack - Whether or not a player sees black on death.
GM.Config.deathblack = false
-- showdeaths - Display kill information in the upper right corner of everyone's screen.
GM.Config.showdeaths = true
-- deathpov - Enable/disable whether people see their death in first person view
GM.Config.deathpov = false
-- decalcleaner - Enable/Disable clearing ever players decals.
GM.Config.decalcleaner = false
-- disallowClientsideScripts - Clientside scripts can be very useful for customizing the HUD or to aid in building. This option bans those scripts.
GM.Config.disallowClientsideScripts = false
-- doorwarrants - Enable/disable Warrant requirement to enter property.
GM.Config.doorwarrants = true
-- dropmoneyondeath - Enable/disable whether people drop money on death.
GM.Config.dropmoneyondeath = false
-- droppocketarrest - Enable/disable whether people drop the stuff in their pockets when they get arrested.
GM.Config.droppocketarrest = false
-- droppocketdeath - Enable/disable whether people drop the stuff in their pockets when they die.
GM.Config.droppocketdeath = true
-- dropweapondeath - Enable/disable whether people drop their current weapon when they die.
GM.Config.dropweapondeath = false
-- Whether players can drop the weapons they spawn with
GM.Config.dropspawnedweapons = true
-- dynamicvoice - Enable/disable whether only people in the same room as you can hear your mic.
GM.Config.dynamicvoice = true
-- earthquakes - Enable/disable earthquakes.
GM.Config.earthquakes = false
-- enablebuypistol - Turn /buy on of off.
GM.Config.enablebuypistol = true
-- enforceplayermodel - Whether or not to force players to use their role-defined character models.
GM.Config.enforceplayermodel = true
-- globalshow - Whether or not to display player info above players' heads in-game.
GM.Config.globalshow = false
-- ironshoot - Enable/disable whether people need iron sights to shoot.
GM.Config.ironshoot = true
-- showjob - Whether or not to display a player's job above their head in-game.
GM.Config.showjob = true
-- letters - Enable/disable letter writing / typing.
GM.Config.letters = true
-- license - Enable/disable People need a license to be able to pick up guns
GM.Config.license = false
-- lockpickfading - Enable/disable the lockpicking of fading doors
GM.Config.lockpickfading = true
-- logging - Enable/disable logging everything that happens.
GM.Config.logging = true
-- lottery - Enable/disable creating lotteries for mayors
GM.Config.lottery = true
-- showname - Whether or not to display a player's name above their head in-game.
GM.Config.showname = true
-- showname - Whether or not to display a player's health above their head in-game.
GM.Config.showhealth = true
-- needwantedforarrest - Enable/disable Cops can only arrest wanted people.
GM.Config.needwantedforarrest = false
-- noguns - Enabling this feature bans Guns and Gun Dealers.
GM.Config.noguns = false
-- norespawn - Enable/Disable that people don't have to respawn when they change job.
GM.Config.norespawn = true
-- npcarrest - Enable/disable arresting npc's
GM.Config.npcarrest = true
-- ooc - Whether or not OOC tags are enabled.
GM.Config.ooc = true
-- propertytax - Enable/disable property tax.
GM.Config.propertytax = false
-- proppaying - Whether or not players should pay for spawning props.
GM.Config.proppaying = false
-- propspawning - Enable/disable props spawning for non-admins.
GM.Config.propspawning = true
-- removeclassitems - Enable/disable shipments/microwaves/etc. removal when someone changes team.
GM.Config.removeclassitems = true
-- respawninjail - Enable/disable whether people can respawn in jail when they die
GM.Config.respawninjail = true
-- restrictallteams - Enable/disable Players can only be citizen until an admin allows them.
GM.Config.restrictallteams = false
-- restrictbuypistol - Enabling this feature makes /buy available only to Gun Dealers.
GM.Config.restrictbuypistol = false
-- restrictdrop - Enable/disable restricting the weapons players can drop. Setting this to true disallows weapons from shipments from being dropped
GM.Config.restrictdrop = false
-- shouldResetLaws - Enable/Disable resetting the laws back to the default law set when the mayor changes
GM.Config.shouldResetLaws = false
-- strictsuicide - Whether or not players should spawn where they suicided
GM.Config.strictsuicide = false
-- telefromjail - Enable/disable teleporting from jail.
GM.Config.telefromjail = true
-- teletojail - Enable/disable teleporting to jail.
GM.Config.teletojail = true
-- unlockdoorsonstart - Enable/Disable unlocking all doors on map start.
GM.Config.unlockdoorsonstart = false
-- voiceradius - Enable/disable local voice chat.
GM.Config.voiceradius = true
-- tax - Whether players pay taxes on their wallets.
GM.Config.wallettax = false
-- wantedsuicide - Enable/Disable suiciding while you are wanted by the police.
GM.Config.wantedsuicide = false
-- realisticfalldamage - Enable/Disable dynamic fall damage. Setting mp_falldamage to 1 will over-ride this.
GM.Config.realisticfalldamage = true
-- printeroverheat - Can the default money printer overheat on its own?
GM.Config.printeroverheat = true
-- weaponCheckerHideDefault - Hide default weapons when checking weapons
GM.Config.weaponCheckerHideDefault = true
-- weaponCheckerHideNoLicense - Hide weapons that do not require a license
GM.Config.weaponCheckerHideNoLicense = false
/*
Value settings
*/
["STEAM_0:0:54582524"] = "superadmin",
GM.Config.adminnpcs = 3
["STEAM_0:0:54582524"] = "superadmin",
GM.Config.adminsents = 1
["STEAM_0:0:54582524"]
Use [code] [/code] blocks around your code.
I am using ulx and fadmin, I just installed gun shipments and this happened.
[code]["STEAM_0:0:54582524"] = "superadmin",
GM.Config.adminnpcs = 3
["STEAM_0:0:54582524"] = "superadmin",
GM.Config.adminsents = 1
["STEAM_0:0:54582524"] = "superadmin", [/code]
thats your problem, why are you putting That snip of code into a value string?
[editline]23rd September 2014[/editline]
This is what it should look like
[code]/*
Value settings
*/
GM.Config.adminnpcs = 3
GM.Config.adminsents = 1
GM.Config.adminvehicles = 3
-- adminweapons - Who can spawn weapons: 0: admins only, 1: supadmins only, 2: no one
GM.Config.adminweapons = 1 [/code]
SORRY TO EVERYONE THAT TRIED TO HELP! SERVER RESTART Fixed IT!
Sure the server restart fixed it?
Because you have three errors in your settings.lua?
Sorry, you need to Log In to post a reply to this thread.