- Initiateur de la discussion
M
Matt59
Geek
- Messages
- 191
- Score réaction
- 12
- Points
- 80
Bonsoir, je suis entrain de faire mon serveur et je souhaiterais que les printers ci-dessous soit uniquement réservé au VIP ainsi qu'aux membre du STAFF or sa me met une erreur lua
Erreur LUA :
There is 1 Lua problem!
Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/entities.lua" because its author made a mistake around line number 56.
The best help I can give you is this:
There is an opening '{' bracket at line 50, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 56.
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 -------
Code actuel :
DarkRP.createEntity("Printer Diamant", {
ent = "diamond_tomasmoneyprinter",
model = "models/props_c17/consolebox01a.mdl",
price = 15000,
max = 1,
cmd = "buydiamondprinter",
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin", "STAFF TEST", "STAFF", "admin", "VIP+", "Fondateur", "Gérant STAFF"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "VIP uniquement"
})
DarkRP.createEntity("Printer Emeraude", {
ent = "emerald_tomasmoneyprinter",
model = "models/props_c17/consolebox01a.mdl",
price = 10000,
max = 1,
cmd = "buyemeraldprinter"
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin", "STAFF TEST", "STAFF", "admin", "VIP+", "Fondateur", "Gérant STAFF"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "VIP uniquement"
})
Erreur LUA :
There is 1 Lua problem!
Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/entities.lua" because its author made a mistake around line number 56.
The best help I can give you is this:
There is an opening '{' bracket at line 50, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 56.
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 -------
Code actuel :
DarkRP.createEntity("Printer Diamant", {
ent = "diamond_tomasmoneyprinter",
model = "models/props_c17/consolebox01a.mdl",
price = 15000,
max = 1,
cmd = "buydiamondprinter",
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin", "STAFF TEST", "STAFF", "admin", "VIP+", "Fondateur", "Gérant STAFF"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "VIP uniquement"
})
DarkRP.createEntity("Printer Emeraude", {
ent = "emerald_tomasmoneyprinter",
model = "models/props_c17/consolebox01a.mdl",
price = 10000,
max = 1,
cmd = "buyemeraldprinter"
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin", "STAFF TEST", "STAFF", "admin", "VIP+", "Fondateur", "Gérant STAFF"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "VIP uniquement"
})