Traité Erreur Jobs

  • Auteur de la discussion Thilo
  • Date de début
  • Réponses 5
  • Affichages 832

Thilo

Master 🏆
Level 1

Torrents Stats

Messages
135
J'aime
780
Trophées
840
Inscrit
20 Décembre 2015
Bonjour j'ai crée se job :
L'Erreur

[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 48.
The best help I can give you is this:

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

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

------- End of Simplerr error -------


----------------------------------------------------------------------------------------------------------------------------

TEAM_LOUP = DarkRP.createJob("Loup Garou VIP", {
color = Color(80, 45, 0, 255),
model = {
"models/humans/group1m/male_01.mdl",
"models/humans/group1m/male_02.mdl",
"models/humans/group1m/male_03.mdl",
"models/humans/group1m/male_04.mdl",
"models/humans/group1m/male_05.mdl",
"models/humans/group1m/male_06.mdl",
"models/humans/group1m/male_07.mdl",
"models/humans/group1m/male_08.mdl",
"models/humans/group1m/male_09.mdl"
},
description = [[Loup.]],
weapons = {"eoti_werewolf_swep"},
command = "loupgarou",
max = 1,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"admin", "superadmin", "co-fondateur", "fondateur", "modérateur", "modotest", "vip"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Vous n'êtes pas autorisé à utiliser ce métier",
category = "Les Jobs VIP"
PlayerDeath = function(ply, weapon, killer)
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un Dragon a été tué.")
else
DarkRP.notifyAll(0, 4, "Un Dragon a été tué.")
end
end


----------------------------------------------------------------------------------------------------------------------------------
 

Shems

VeryLeak's Unique Member 👑
Level 5
VeryFriend's

Torrents Stats

Messages
585
J'aime
354
Trophées
1 538
Inscrit
31 Décembre 2015
... Pour les jobs tout est dit tu à ouverte une ligne, et tu la fermer mais tu ne doit pas la fermer There is an opening '{' bracket at line 21, but this bracket is never closed or not closed in time. It was expected to be closed before the 'PlayerDeath' at line 48.
 

Thilo

Master 🏆
Level 1

Torrents Stats

Messages
135
J'aime
780
Trophées
840
Inscrit
20 Décembre 2015
Tu peux copier coller le job et me le faire vite fait STP ?
 

Thilo

Master 🏆
Level 1

Torrents Stats

Messages
135
J'aime
780
Trophées
840
Inscrit
20 Décembre 2015

Yoda_Master

Membre 🏅
Level 1

Torrents Stats

Messages
44
J'aime
0
Trophées
43
Inscrit
10 Mars 2016
elle est ou la ligne 48
 

Cyas94

Master 🏆
Level 1

Torrents Stats

Messages
191
J'aime
27
Trophées
828
Inscrit
26 Novembre 2015
Ta trouve alors ?
 
Haut Bas