Ok so i'm getting errors with my citizen job. First one is
[ERROR] gamemodes/darkrp/gamemode/shared.lua:53: '}' expected (to close '{' at line 4) near 'TEAM_CITIZEN'
1. unknown - gamemodes/darkrp/gamemode/shared.lua:0
and lines 4&5 are
TEAM_CITIZEN = AddExtraTeam("Citizen", {
color = Color(20, 150, 20, 255),
No error, right? So I change line 4 to be like this
TEAM_CITIZEN = AddExtraTeam("Citizen", {}
and then I get the following error
[ERROR] gamemodes/darkrp/gamemode/shared.lua:5: ')' expected (to close '(' at line 4) near 'color'
1. unknown - gamemodes/darkrp/gamemode/shared.lua:0
The whole job is
TEAM_CITIZEN = AddExtraTeam("Citizen", {}
color = Color(20, 150, 20, 255),
model = {"models/player/group01/male_01.mdl",
"models/player/Group01/Male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
"models/player/Group01/Male_05.mdl",
"models/player/Group01/Male_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"},
description = [[A normal Citizen. Your purpose is to roleplay a normal life.]],
weapons = {},
command = "citizen",
max = 0,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
Any ideas?
Problems with darkrp jobs?
-
- A semi-regular
- Posts: 19
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Mon Feb 11, 2013 12:28 pm
Re: Problems with darkrp jobs?
I forgot to mention that sometimes when I follow what the error code says it jumps to a different job and gives errors.
- Sir Nipah
- This is my homepage
- Posts: 76
- Joined: Mon Jul 08, 2013 3:38 am
- Location: Australia/Melbourne
- Contact:
Re: Problems with darkrp jobs?
Can you post the shared.lua file? (I'm not going to take it, I host Cinema and TTT but I have hosted DarkRP)
Garry's Mod veteran.
Re: Problems with darkrp jobs?
Sorry I forgot to mention I fixed it a few hours ago