Okay, so I'm currently developing a DarkRP Server, I got everything perfectly fine... I just need to add some jobs. So I get there, and I finally upload the edited shared.lua, I then restart the server and I enter the server. But I then get kicked for "Too many Lua errors! Sorry!"
This is what the console came up with..
[ERROR] gamemodes/darkrp/gamemode/shared.lua:252: unexpected symbol near '}'
1. unknown - gamemodes/darkrp/gamemode/shared.lua:0
Here is also a picture of my shared.lua: [URL="http://imgur.com/ukqQVVT"]http://imgur.com/ukqQVVT[/URL]
Show us line 252.
[editline]19th July 2013[/editline]
Or copy paste the job in which is the error.
Sure, it is my thief job..
TEAM_THIEF = AddExtraTeam("Thief", {
color = Color(255, 255, 102, 255),
model = "models/player/artic.mdl",
description = [[You are a thief and a menace to society,
Your job is to lockpick into <---- Line 252
players\' homes and steal
their valuables.]]
weapons = {"lockpick","keypad_cracker"}
command = "thief",
max = 5,
salary = 50,
admin = 0,
vote = false,
hasLicense = false
})
You forgot 2 comma's, one at the description and the other at weapons.
[LUA]TEAM_THIEF = AddExtraTeam("Thief", {
color = Color(255, 255, 102, 255),
model = "models/player/artic.mdl",
description = [[You are a thief and a menace to society,
Your job is to lockpick into
players\' homes and steal
their valuables.]],
weapons = {"lockpick","keypad_cracker"},
command = "thief",
max = 5,
salary = 50,
admin = 0,
vote = false,
hasLicense = false
})[/LUA]
Oh my gosh.... I did....
~ 5 Minutes Later, after trying it out.
Thank you so much!!!! :smile: :DDDDD
[editline]18th July 2013[/editline]
Well... great.... it's still messed up.. it now tells me
[ERROR] gamemodes/darkrp/gamemode/shared.lua:239: '}' expected (to close '{' at line 234) near 'weapons'
1. unknown - gamemodes/darkrp/gamemode/shared.lua:0
It can clearly show how bad I am at lua.. :(
TEAM_SWAT = AddExtraTeam("SWAT", { <-- 234
color = Color(51, 51, 255, 255),
model = "models/player/swat.mdl",
description = [[You are a protector of the city, keeping the
streets away of any terrorist or acts of crime.]]
weapons = {"m9k_m16a4_acog","m9k_m92beretta","m9k_mp7","unarrest_stick","arrest_stick","weaponchecker","door_ram","stunstick","pocket","keys"}, <---- 239
command = "swat",
max = 3,
salary = 65,
admin = 0,
vote = true,
hasLicense = true
})
You keep forgetting commas my friend;
[code]TEAM_SWAT = AddExtraTeam("SWAT", {
color = Color(51, 51, 255, 255),
model = "models/player/swat.mdl",
description = [[You are a protector of the city, keeping the
streets away of any terrorist or acts of crime.]],
weapons = {"m9k_m16a4_acog", "m9k_m92beretta", "m9k_mp7", "unarrest_stick", "arrest_stick", "weaponchecker", "door_ram", "stunstick", "pocket", "keys"},
command = "swat",
max = 3,
salary = 65,
admin = 0,
vote = true,
hasLicense = true
}) [/code]
Go into your server config file with your server control panel and paste then in close to the top: sv_kickerrornum 0 And you wont get kicked for "Too Many Lua Errors"
Do you must write: Add.EXTRA
or could u write Add.TEAM
Sorry, you need to Log In to post a reply to this thread.