- Initiateur de la discussion
M
Matt59
Geek
- Messages
- 191
- Score réaction
- 12
- Points
- 80
J'ai une erreur lua que voici : (ligne 35)
[ERROR] Lua is unable to understand file "darkrp_customthings/entities.lua" because its author made a mistake around line number 35.
The best help I can give you is this:
There is an opening '{' bracket at line 29, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 35.
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 les lignes de codes :
DarkRP.createEntity("Printer Diamant", {
ent = "diamond_tomasmoneyprinter",
model = "models/props_c17/consolebox01a.mdl",
price = 10000,
max = 1,
cmd = "buydiamondprinter"
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin", "STAFF TEST", "STAFF", "admin", "VIP+", "Fondateur",}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "VIP uniquement"
})
[ERROR] Lua is unable to understand file "darkrp_customthings/entities.lua" because its author made a mistake around line number 35.
The best help I can give you is this:
There is an opening '{' bracket at line 29, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 35.
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 les lignes de codes :
DarkRP.createEntity("Printer Diamant", {
ent = "diamond_tomasmoneyprinter",
model = "models/props_c17/consolebox01a.mdl",
price = 10000,
max = 1,
cmd = "buydiamondprinter"
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin", "STAFF TEST", "STAFF", "admin", "VIP+", "Fondateur",}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "VIP uniquement"
})