Custom DarkRP Error

Hi,
I’ve been making an edit to darkrp, and I got an error:
[gamemodes\darkrp\gamemode\shared.lua:60] ‘=’ expected near ‘TO’
[gamemodes\darkrp\gamemode\sv_gamemode_functions.lua:428] attempt to index local ‘TEAM’ (a nil value)(Hook: PlayerSetModel)

This has made my job menu disappear.
Here is my code, please help!
[lua] /--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------
/
TEAM_CITIZEN = AddExtraTeam(“Unemployed”, Color(20, 150, 20, 255), {
“models/player/hostage/hostage_01.mdl”,
“models/player/hostage/hostage_02.mdl”,
“models/player/hostage/hostage_03.mdl”,
“models/player/hostage/hostage_03.mdl”,
“models/player/group02/female_02.mdl”,
“models/player/group02/female_04.mdl”,
“models/player/group02/female_06.mdl”,
“models/player/group02/female_07.mdl”,
“models/player/group02/male_02.mdl”,
“models/player/group02/male_04.mdl”,
“models/player/group02/male_06.mdl”,
“models/player/group02/male_08.mdl”}, [[You are unemployed, you get checks from the government.]], {“fists”}, “citizen”, 0, 50, 0, false, false)

TEAM_POLICE = AddExtraTeam(“Police Officer”, Color(25, 25, 170, 255), “models/police/cop.mdl”, [[Arrest unarmed criminals, such as thieves.]], {“fists”, “handcuffs”, “unarrest”, “weapon_real_cs_glock18”, “baton”, “door_ram”, “weaponchecker”, “taser”}, “cp”, 4, 70, 0, true, true)

TEAM_GANG = AddExtraTeam(“Gangster”, Color(75, 75, 75, 255), {
“models/gang/male_05.mdl”,
“models/gang/male_07.mdl”,
“models/gang/male_09.mdl”,
“models/gang/bloodz/slow_1.mdl”,
“models/gang/bloodz/slow_2.mdl”,
“models/gang/bloodz/slow_3.mdl”,
“models/gang/cripz/slow_1.mdl”,
“models/gang/cripz/slow_2.mdl”,
“models/gang/cripz/slow_3.mdl”}, [[Do crime for cash.]], {“fists”, “weapon_real_cs_knife”}, “gangster”, 3, 0, 0, false, false)

TEAM_GUN = AddExtraTeam(“Gun Dealer”, Color(255, 140, 0, 255), “models/player/monk.mdl”, [[A gun dealer is the only person who can sell guns to other
people.
However, make sure you aren’t caught selling guns that are illegal to
the public.
/Buyshipment <name> to Buy a weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols]], {“fists”}, “gundealer”, 2, 45, 0, false, false)

TEAM_MEDIC = AddExtraTeam(“Medic”, Color(47, 79, 79, 255), “models/player/kleiner.mdl”, [[With your medical knowledge, you heal players to proper
health.
Without a medic, people can not be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.]], {“fists”, “med_kit”}, “medic”, 3, 45, 0, false, false)

TEAM_COOK = AddExtraTeam(“Cook”, Color(238, 99, 99, 255), “models/player/mossman.mdl”, [[As a cook, it is your responsibility to feed the other members
of your city.
You can spawn a microwave and sell the food you make:
/Buymicrowave]], {“fists”}, “cook”, 2, 45, 0, 0, false)

TEAM_MAYOR = AddExtraTeam(“Mayor”, Color(150, 20, 20, 255), “models/player/breen.mdl”, [[The Mayor of the city creates laws to serve the greater good
of the people.
If you are the mayor you may create and accept warrants.
Type /wanted <name> to warrant a player
Type /jailpos to set the Jail Position
Type /lockdown initiate a lockdown of the city.
Everyone must be inside during a lockdown.
The cops patrol the area
/unlockdown to end a lockdown]], {“fists”}, “mayor”, 1, 85, 0, true, false)


HOW TO MAKE AN EXTRA CLASS!!!

You can make extra classes here. Set everything up here and the rest will be done for you! no more editing 100 files without knowing what you’re doing!!!
Ok here’s how:

To make an extra class do this:
AddExtraTeam( “<NAME OF THE CLASS>”, Color(<red>, <Green>, <blue>, 255), “<Player model>” , [[<the description(it can have enters)>]], { “<first extra weapon>”,"<second extra weapon>", etc…}, “<chat command to become it(WITHOUT THE /!)>”, <maximum amount of this team> <the salary he gets>, 0/1/2 = public /admin only / superadmin only, <1/0/true/false Do you have to vote to become it>, true/false DOES THIS TEAM HAVE A GUN LICENSE?, TEAM: Which team you need to be to become this team)

The real example is here: it’s the Hobo: */

–VAR without /!!! The name the color(what you see in tab) the player model The description

//No extra weapons say /hobo to become hobo Maximum hobo’s = 5 his salary = 0 because hobo’s don’t earn money. 0 = everyone can become hobo , false = you don’t have to vote to become hobo
// MAKE SURE THAT THERE IS NO / IN THE TEAM NAME OR IN THE TEAM COMMAND:
// TEAM_/DUDE IS WROOOOOONG !!!
// HAVING “/dude” IN THE COMMAND FIELD IS WROOOOOOOONG!!!
//ADD TEAMS UNDER THIS LINE:

TEAM_CRBOSS = AddExtraTeam(“Crime Boss”, Color(75, 80, 75, 255), {
“models/player/gman_high.mdl”,
“models/crime/gdub.mdl”,
“models/crime/male_07.mdl”,
“models/crime/gallaha.mdl”}, [[ Direct the actions of the criminals.]], {“fists”, “lockpick”, “keypad_cracker”, “weapon_real_cs_knife”, “weapon_real_cs_ak47”, “weapon_real_cs_g3sg1”, “unarrest”, “weapon_real_cs_desert_eagle”}, “boss”, 1, 100, 0, 1, false, TEAM_GANG)
/*

HOW TO MAKE A DOOR GROUP

AddDoorGroup(“NAME OF THE GROUP HERE, you see this when looking at a door”, Team1, Team2, team3, team4, etc.)

WARNING: THE DOOR GROUPS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!

The default door groups, can also be used as examples:
*/
AddDoorGroup(“Government only”, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup(“Merchants only”, TEAM_GUN, TEAM_MEDIC, TEAM_COOK)
AddDoorGroup(“Criminals only”, TEAM_GANG, TEAM_CRBOSS)

/*

HOW TO MAKE An agenda

AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))

WARNING: THE AGENDAS HAVE TO BE UNDER THE TEAMS IN SHARED.LUA. IF THEY ARE NOT, IT MIGHT MUCK UP!

The default agenda’s, can also be used as examples:
*/

AddAgenda(“Laws”, TEAM_MAYOR, {TEAM_CITIZEN, TEAM_POLICE, TEAM_GANG, TEAM_GUN, TEAM_MEDIC, TEAM_COOK}) [lua]

And which is the line with the error? also use [lua] tags

Yeah please add [lua]tags.

And your custom job needs a )

[lua]
TEAM_CRBOSS = AddExtraTeam(“Crime Boss”, Color(75, 80, 75, 255), {
“models/player/gman_high.mdl”,
“models/crime/gdub.mdl”,
“models/crime/male_07.mdl”,
“models/crime/gallaha.mdl”}, [[ Direct the actions of the criminals.]], {“fists”, “lockpick”, “keypad_cracker”, “weapon_real_cs_knife”, “weapon_real_cs_ak47”, “weapon_real_cs_g3sg1”, “unarrest”, “weapon_real_cs_desert_eagle”}, “boss”, 1, 100, 0, true, false, TEAM_GANG)
[/lua]

-snip-, was late D:

Oh god D:

What do you mean when you go -snip-?

[editline]17th January 2011[/editline]

how do you add lua tags?
also the code has that, but the copy and paste missed it

[editline]17th January 2011[/editline]

the ) i mean

[noparse][lua]
YOUR CODE HERE
[/lua][/noparse]

snip usually means removed.

[editline]18th January 2011[/editline]

And which one is the line with the error.

Yeah, with the lua tag’s we can see which line it is.

I fixed it by redoing it.