Erreur LUA

  • Initiateur de la discussion
M

Matt59

Geek
Messages
191
Score réaction
12
Points
80
Bonsoir,
j'ai créer un shipment (desert eagle / M9K) mais quand je reboot sa me met une erreur lua
j'ai fais ceci :

DarkRP.createShipment("Desert Eagle", {
model = "models/weapons/w_tcom_deagle.mdl",
entity = "m9k_deagle",
price = 5000,
amount = 1,
seperate = false,
pricesep = 2,
noship = false
allowed = {TEAM_VARME}
})

l'erreur en question :

There is 1 Lua problem!
Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/shipments.lua" because its author made a mistake around line number 46.
The best help I can give you is this:

There is an opening '{' bracket at line 38, but this bracket is never closed or not closed in time. It was expected to be closed before the 'allowed' at line 46.

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 -------

Ou est l'erreur ?

Merci d'avance
 
thepsyca

thepsyca

Psychopathe
Messages
2 164
Score réaction
648
Points
365
Code:
DarkRP.createShipment("Desert Eagle", {
model = "models/weapons/w_tcom_deagle.mdl",
entity = "m9k_deagle",
price = 5000,
amount = 1,
seperate = false,
pricesep = 2,
noship = false,
allowed = {TEAM_VARME},
})
T'avais oublié des virugles
 
Yoh Sambre ♪

Yoh Sambre ♪

Shaman Fou
Messages
16 289
Score réaction
9 688
Points
1 845
essaye ça :

Code:
DarkRP.createShipment("Desert Eagle", { model = "models/weapons/w_tcom_deagle.mdl", entity = "m9k_deagle", amount = 5, price = 5000, separate = false, pricesep = 0, noship = false, category = "weapons"
})
 
  • Initiateur de la discussion
M

Matt59

Geek
Messages
191
Score réaction
12
Points
80
J'ai ceci au dessus déjà crée est il marchait :
AddEntity("Piano", {
ent = "gmt_instrument_piano",
model = "models/fishy/furniture/piano.mdl",
price = 200,
max = 1,
cmd = "/piano",
allowed = {TEAM_MUSCIEN},
-- CustomCheck
})

DarkRP.createShipment("Desert Eagle", {
model = "models/weapons/w_tcom_deagle.mdl",
entity = "m9k_deagle",
price = 5000,
amount = 1,
seperate = false,
pricesep = 2,
noship = false,
allowed = {TEAM_VARME},
})
 
  • Initiateur de la discussion
M

Matt59

Geek
Messages
191
Score réaction
12
Points
80
Sujet réglé merci
thepsyca à dit:
Code:
DarkRP.createShipment("Desert Eagle", {
model = "models/weapons/w_tcom_deagle.mdl",
entity = "m9k_deagle",
price = 5000,
amount = 1,
seperate = false,
pricesep = 2,
noship = false,
allowed = {TEAM_VARME},
})
T'avais oublié des virugles
 
Discord d'entraide
Rejoignz-nous sur Discord