Erreur LUA

  • Initiateur de la discussion Matt59
  • Date de début
  • 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"
})
 
thepsyca

thepsyca

Psychopathe
Messages
2 164
Score réaction
648
Points
365
il te manque la virgule
Code:
cmd = "buyemeraldprinter",
 
  • Initiateur de la discussion
M

Matt59

Geek
Messages
191
Score réaction
12
Points
80
thepsyca

thepsyca

Psychopathe
Messages
2 164
Score réaction
648
Points
365
  • Initiateur de la discussion
M

Matt59

Geek
Messages
191
Score réaction
12
Points
80
Cela me met toujours l'erreur :

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

Right before the 'end', Lua expected to read a 'end of the file', but it didn't.

Hints:
- Did you forget a keyword?
- Did you forget a comma?

------- End of Simplerr error -------
 
  • Initiateur de la discussion
M

Matt59

Geek
Messages
191
Score réaction
12
Points
80
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"
})

DarkRP.createEntity("Amélioration printer", {
ent = "amount_upgrade",
model = "models/props_lab/reciever01d.mdl",
price = 100,
max = 2,
cmd = "buyamountupgrade"
})

DarkRP.createEntity("Printer Or", {
ent = "gold_tomasmoneyprinter",
model = "models/props_c17/consolebox01a.mdl",
price = 6500,
max = 1,
cmd = "buygoldprinter"
})

DarkRP.createEntity("Printer Rubis", {
ent = "ruby_tomasmoneyprinter",
model = "models/props_c17/consolebox01a.mdl",
price = 5500,
max = 1,
cmd = "buyrubyprinter"
})

DarkRP.createEntity("Encre", {
ent = "ink_upgrade",
model = "models/props_lab/jar01b.mdl",
price = 250,
max = 4,
cmd = "buyprinterink"
})

DarkRP.createEntity("Papier", {
ent = "paper_upgrade",
model = "models/props/cs_office/paper_towels.mdl",
price = 300,
max = 3,
cmd = "buyprinterpaper"
})

DarkRP.createEntity("Exctincteur", {
ent = "fire_extinguisher",
model = "models/props/cs_office/fire_extinguisher.mdl",
price = 300,
max = 1,
cmd = "buyfireextinguisher"
})
end, <----- line number 91
 
thepsyca

thepsyca

Psychopathe
Messages
2 164
Score réaction
648
Points
365
bah le end sert à rien
 
Discord d'entraide
Rejoignz-nous sur Discord