Torrents Stats
- Partagées
- 130 Go
- Téléchargées
- 0 bytes
- Ratio
- -
- 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
----------------------------------------------------------------------------------------------------------------------------------
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
----------------------------------------------------------------------------------------------------------------------------------