Je ne trouve pas l'erreur que la console me dit !

  • Initiateur de la discussion Deadman69330
  • Date de début
  • Initiateur de la discussion
Deadman69330

Deadman69330

Psychopathe
Messages
2 289
Score réaction
309
Points
290
Bonjour,

La console me dit que j'ai oublier une virgule à la ligne 1145 alors que je n'ai rien changé depuis un bout de temps...

Voilà ma config des jobs

Clique sur moi, aller stp CLIQUE SUR MOI BORDEL !


Merci :)
 
kirikoumalou

kirikoumalou

Lucas Pastel
Messages
1 057
Score réaction
200
Points
260
Envoie l'erreur stp
 
  • Initiateur de la discussion
Deadman69330

Deadman69330

Psychopathe
Messages
2 289
Score réaction
309
Points
290
kirikoumalou à dit:
Envoie l'erreur stp
There is 1 Lua problem!
Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 1145.
The best help I can give you is this:

There is an opening '{' bracket at line 1117, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 1145.

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

kirikoumalou

Lucas Pastel
Messages
1 057
Score réaction
200
Points
260
Supprime ton métier "Terroriste" et met sa

Code:
TEAM_TERRO = DarkRP.createJob("Terroriste", { color = Color(154, 152, 5, 255), model = {"models/player/arctic.mdl"}, description = [[Vous devez faire des attentats.]], weapons = {"weapon_fists", "weapon_arc_atmcard", "m9k_suicide_bomb", "m9k_ied_detonator", "weapon_jihadbomb"}, command = "terro", max = 2, salary = 15, admin = 0, vote = false, hasLicense = false, category = "VIP", candemote = true, customCheck = function(ply) return ply:IsUserGroup("VIP") or ply:IsUserGroup("admin") or ply:IsUserGroup("modérateur") or ply:IsUserGroup("superadmin") end, CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier", PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) if killer:IsPlayer() then DarkRP.notifyAll(0, 4, "") else DarkRP.notifyAll(0, 4, "") end end
})
(il y avais
Code:
 PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) if killer:IsPlayer() then DarkRP.notifyAll(0, 4, "") else DarkRP.notifyAll(0, 4, "") end end
en 2 fois ;))
 
  • Initiateur de la discussion
Deadman69330

Deadman69330

Psychopathe
Messages
2 289
Score réaction
309
Points
290
kirikoumalou à dit:
Supprime ton métier "Terroriste" et met sa

Code:
TEAM_TERRO = DarkRP.createJob("Terroriste", { color = Color(154, 152, 5, 255), model = {"models/player/arctic.mdl"}, description = [[Vous devez faire des attentats.]], weapons = {"weapon_fists", "weapon_arc_atmcard", "m9k_suicide_bomb", "m9k_ied_detonator", "weapon_jihadbomb"}, command = "terro", max = 2, salary = 15, admin = 0, vote = false, hasLicense = false, category = "VIP", candemote = true, customCheck = function(ply) return ply:IsUserGroup("VIP") or ply:IsUserGroup("admin") or ply:IsUserGroup("modérateur") or ply:IsUserGroup("superadmin") end, CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier", PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) if killer:IsPlayer() then DarkRP.notifyAll(0, 4, "") else DarkRP.notifyAll(0, 4, "") end end
})
(il y avais
Code:
 PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) if killer:IsPlayer() then DarkRP.notifyAll(0, 4, "") else DarkRP.notifyAll(0, 4, "") end end
en 2 fois ;))
Ok, merci beaucoup, sa marche :D
 
  • J'aime
Réactions: kirikoumalou
Discord d'entraide
Rejoignz-nous sur Discord