Darkrp Why cant the mayor use mayor commands?

the mayor cannot use the mayor commands and i do not know why. Only the regular mayor can but it could not since i edited it and when i tried to add it back it caused an error
Mayor code:

TEAM_MAYOR = DarkRP.createJob(“Mayor”, {
color = Color(150, 20, 20, 255),
model = “models/player/breen.mdl”,
description = [[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]],
weapons = {},
command = “mayor”,
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
PlayerDeath = function(ply, weapon, killer),
ply:teamBan(),
ply:changeTeam(GAMEMODE.DefaultTeam, true),
if killer:IsPlayer() then,
DarkRP.notifyAll(0, 4, “The mayor has been killed and is therefor demoted.”),
else,
DarkRP.notifyAll(0, 4, “The mayor has died and is therefor demoted.”),
end,
end
})

Might work.

wat did u change?

[editline]22nd May 2014[/editline]

oh commas

You don’t use commas inside functions like that.


Tomis, what does it say when you attempt to use a mayor command?