- Initiateur de la discussion
GamesCrackFR
Geek suprême
- Messages
- 192
- Score réaction
- 3
- Points
- 115
Bonsoir queslqu'un pourrais m'aider je vous donne mon code et l'erreur :
TEAM_CHEFSWAT = DarkRP.createJob("Chef du Swat", {
color = Color(0, 0, 0, 255),
model = {"models/sru_sergeant/sru_sergeant.mdl"},
description = [[Le Chef du Swat organise et regroupe ces équipe pour des intervention musclé ]],
weapons = {"arrest_stick", "unarrest_stick", "m9k_usas", "m9k_deagle", "weapon_stungun", "m9k_scar", "stunstick", "weapon_doorbreak", "weaponchecker"},
command = "chefswat",
max = 1,
salary = 400,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
chief = true,
category = "Civil Protection",
PlayerLoadout = function(ply) ply:SetArmor(100) end,
customCheck = function(ply) return table.HasValue({"donateur", "admin", "superadmin"}, ply:GetNWString("usergroup")) end
CustomCheckFailMsg = "Ce métier est VIP uniquement!"
})
Erreur
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because
its author made a mistake around line number 52.
The best help I can give you is this:
There is an opening '{' bracket at line 36, but this bracket is never closed or
not closed in time. It was expected to be closed before the 'CustomCheckFailMsg'
at line 52.
Hints:
- Did you forget a comma?
- All open brackets ({, (, [) must have a matching closing bracket. Are
you sure it's there?
- Brackets must be opened and closed in the right order. This will work:
({}), but this won't: ({)}.
TEAM_CHEFSWAT = DarkRP.createJob("Chef du Swat", {
color = Color(0, 0, 0, 255),
model = {"models/sru_sergeant/sru_sergeant.mdl"},
description = [[Le Chef du Swat organise et regroupe ces équipe pour des intervention musclé ]],
weapons = {"arrest_stick", "unarrest_stick", "m9k_usas", "m9k_deagle", "weapon_stungun", "m9k_scar", "stunstick", "weapon_doorbreak", "weaponchecker"},
command = "chefswat",
max = 1,
salary = 400,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
chief = true,
category = "Civil Protection",
PlayerLoadout = function(ply) ply:SetArmor(100) end,
customCheck = function(ply) return table.HasValue({"donateur", "admin", "superadmin"}, ply:GetNWString("usergroup")) end
CustomCheckFailMsg = "Ce métier est VIP uniquement!"
})
Erreur
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because
its author made a mistake around line number 52.
The best help I can give you is this:
There is an opening '{' bracket at line 36, but this bracket is never closed or
not closed in time. It was expected to be closed before the 'CustomCheckFailMsg'
at line 52.
Hints:
- Did you forget a comma?
- All open brackets ({, (, [) must have a matching closing bracket. Are
you sure it's there?
- Brackets must be opened and closed in the right order. This will work:
({}), but this won't: ({)}.