- Initiateur de la discussion
AxelSaruti
Geek
- Messages
- 49
- Score réaction
- 4
- Points
- 95
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 57.
The best help I can give you is this:
There is an opening '{' bracket at line 40, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 57.
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 -------
Voici le job qui concerne la ligne 57 :
TEAM_BRIT2 = DarkRP.createJob("Lance Corporal", {
color = Color(0, 148, 255, 255),
model = {"models/bf1/uk/uk_scout.mdl"},
description = [[Vous êtes dans l'armée britannique.
]],
weapons = {"doi_atow_etoolcw", "doi_atow_enfield", "sswep_trenchwhistle"},
command = "brit2",
max = 0,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Armée Britannique",
ammo = {
["doi_atow_ammo_303brit"] = 100
}
customCheck = function(ply)
if ply:GetUTimeTotalTime() >= 3600 then -- 1h
return true
end
end,
CustomCheckFailMsg = "Vous devez jouer " .. string.NiceTime( 3600 ) .." pour pouvoir prendre ce type de metier.",
})
Des réponses ?
(merci)
The best help I can give you is this:
There is an opening '{' bracket at line 40, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 57.
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 -------
Voici le job qui concerne la ligne 57 :
TEAM_BRIT2 = DarkRP.createJob("Lance Corporal", {
color = Color(0, 148, 255, 255),
model = {"models/bf1/uk/uk_scout.mdl"},
description = [[Vous êtes dans l'armée britannique.
]],
weapons = {"doi_atow_etoolcw", "doi_atow_enfield", "sswep_trenchwhistle"},
command = "brit2",
max = 0,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Armée Britannique",
ammo = {
["doi_atow_ammo_303brit"] = 100
}
customCheck = function(ply)
if ply:GetUTimeTotalTime() >= 3600 then -- 1h
return true
end
end,
CustomCheckFailMsg = "Vous devez jouer " .. string.NiceTime( 3600 ) .." pour pouvoir prendre ce type de metier.",
})
Des réponses ?
(merci)