probleme de job

  • Initiateur de la discussion
GamesCrackFR

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: ({)}.
 
Reese Roite

Reese Roite

Psychopathe
Messages
952
Score réaction
90
Points
250
customCheck = function(ply) return table.HasValue({"donateur", "admin", "superadmin"}, ply:GetNWString("usergroup")) end ,
tu as oublié la viirgule
 
Quality

Quality

Geek suprême
Messages
245
Score réaction
46
Points
130
Bonjour,

Rajoutes une virgule après "ply:GetNWString("usergroup")) end " :)
 
Reese Roite

Reese Roite

Psychopathe
Messages
952
Score réaction
90
Points
250
trop tard quality ;)
 
Quality

Quality

Geek suprême
Messages
245
Score réaction
46
Points
130
Poster en même temps pratiquement ;)
 
Reese Roite

Reese Roite

Psychopathe
Messages
952
Score réaction
90
Points
250
D'après mtx un certain reese roite l'a fiat avant ;)
 
Quality

Quality

Geek suprême
Messages
245
Score réaction
46
Points
130
  • Initiateur de la discussion
GamesCrackFR

GamesCrackFR

Geek suprême
Messages
192
Score réaction
3
Points
115
Merci
 
Discord d'entraide
Rejoignz-nous sur Discord