- Initiateur de la discussion
A
Azrod60
Têtard
- Messages
- 5
- Score réaction
- 0
- Points
- 5
Bonjour a tous !
J'ai tout le temps des erreurs lua quand je mets un custom check met je ne sais pas pourquoi ?
Voici la console et le job en question.
ET LA CONSOLE :
J'ai tout le temps des erreurs lua quand je mets un custom check met je ne sais pas pourquoi ?
Voici la console et le job en question.
Code:
TEAM_PSYCHO = DarkRP.createJob("*VIP* Psycopathe", { color = Color(0, 255, 25, 255), model = {"models/player/Group01/Female_01.mdl"}, description = [[Tuez les gens !]], weapons = {"fas2_machete"}, command = "psycho", max = 4, salary = 1000, admin = 0, vote = false, hasLicense = false, candemote = false, customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "Modérateur", "Modérateur-Test", "VIP"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "Ce métier est VIP.",
})
Code:
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 145.
The best help I can give you is this:
There is an opening '{' bracket at line 133, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 145.
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: ({)}.