Problemes lua aider moi avec mon job.lua

  • Initiateur de la discussion Ugho
  • Date de début
  • Initiateur de la discussion
U

Ugho

Bambi
Messages
22
Score réaction
0
Points
35
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 509.
The best help I can give you is this:

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

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: ({)}.
 
Mahmoude Del Mouloude

Mahmoude Del Mouloude

Geek suprême
Messages
196
Score réaction
17
Points
115
passe ton jobs.lua sur pastebin
 
  • Initiateur de la discussion
U

Ugho

Bambi
Messages
22
Score réaction
0
Points
35
c quoi tu a skype
 
  • Initiateur de la discussion
U

Ugho

Bambi
Messages
22
Score réaction
0
Points
35
voici mon jon.lua
 

Pièces jointes

  • jobs darkrp.txt
    20.5 KB Vues: 77
  • Banni
JeanBabouche

JeanBabouche

Psychopathe
Messages
772
Score réaction
71
Points
220
  • Initiateur de la discussion
U

Ugho

Bambi
Messages
22
Score réaction
0
Points
35
Tu peut me dire quoi faire
 
  • Banni
kadirdu808080

kadirdu808080

Geek
Messages
68
Score réaction
2
Points
95
a nn tout tes code son pas bon ta skype ?
 
Neoziix

Neoziix

Geek
Messages
110
Score réaction
10
Points
85
Ligne 504 tu retires ton :

TEAM_ARCHI = DarkRP.createJob("Architecte", {
color = Color(240, 255, 255),
model = {
"models/player/dr_schwaiger.mdl",

},
description = [[Tu aide les gens a construire leur Maison]],
weapons = {"weapon_arc_atmcard","weapon_fists","pocket"},
command = "archi",
max = 2,
salary = 95,
type = "commerce",
admin = 0,
vote = false,
hasLicense = false,
category = "",
})

et tu le remplaces par :

TEAM_ARCHI = DarkRP.createJob("Architecte", {
color = Color(240, 255, 255),
model = "models/player/dr_schwaiger.mdl",
description = [[Tu aide les gens a construire leur Maison]],
weapons = {"weapon_arc_atmcard","weapon_fists","pocket"},
command = "archi",
max = 2,
salary = 95,
type = "commerce",
admin = 0,
vote = false,
hasLicense = false,
category = "",
})

Mais attention, tu as dû enlever par erreur tous les {} dans la ligne "model" et il faudrait que tu les remettes.
 
scoffwin

scoffwin

Geek
Messages
28
Score réaction
2
Points
85
JeanBabouche à dit:
Même pas bien mis tes jobs :
Quand on c'est pas assigner des armes à des métiers, on peut se taire.
 
Discord d'entraide
Rejoignz-nous sur Discord