Besoin d'aide

  • Initiateur de la discussion Jean-pierre du 57
  • Date de début
  • Initiateur de la discussion
J

Jean-pierre du 57

Nouveau né
Messages
1
Score réaction
0
Points
15
Bonjour ou bonsoir,

Je vais vous expliquer mon problème lua,mon serveur gmod est (quasiment) complètement codé il manquait juste cet addon(farm system),mais malheureusement cet addon a créé une erreur lua qui est la suivante:

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

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

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

,je vous mets donc mon fichier enitites:

DarkRP.createEntity("Graines de pommes", {
ent = "fs_apple_seeds",
model = "models/props_lab/box01a.mdl",
price = 200,
max = 20,
cmd = "buyappleseeds",
allowed = TEAM_FS_FARMER
category = "Ferme"
})

C'est donc dans cette partie de code que le problème se trouve.

Je vous remercie d'avance pour votre aide.

Cordialement.
 
Reijin

Reijin

Psychopathe
Messages
1 739
Score réaction
401
Points
290
Jean-pierre du 57 à dit:
Bonjour ou bonsoir,

Je vais vous expliquer mon problème lua,mon serveur gmod est (quasiment) complètement codé il manquait juste cet addon(farm system),mais malheureusement cet addon a créé une erreur lua qui est la suivante:

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

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

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

,je vous mets donc mon fichier enitites:

DarkRP.createEntity("Graines de pommes", {
ent = "fs_apple_seeds",
model = "models/props_lab/box01a.mdl",
price = 200,
max = 20,
cmd = "buyappleseeds",
allowed = TEAM_FS_FARMER
category = "Ferme"
})

C'est donc dans cette partie de code que le problème se trouve.

Je vous remercie d'avance pour votre aide.

Cordialement.
Bonsoir, voici la correction de ton erreur. Il faut pas oublier les virgules :p
Code:
DarkRP.createEntity("Graines de pommes", { ent = "fs_apple_seeds", model = "models/props_lab/box01a.mdl", price = 200, max = 20, cmd = "buyappleseeds", allowed = TEAM_FS_FARMER, category = "Ferme",
})
 
Discord d'entraide
Rejoignz-nous sur Discord