Besoin d'aide pour changer la vie des jobs

  • Initiateur de la discussion
KanekiKakuja

KanekiKakuja

Bambi
Messages
9
Score réaction
0
Points
40
Bonjour je solicite encore votre aide car j'ai un soucis

je voudrais changer la vie de mes jobs mais quand je rentre une commande spécifique cela ne fonctionne pas et étant débutant je n'y comprends pas grand choses :/




Mon code pour le civil :


TEAM_CIVILS = DarkRP.createJob("Civils", {
color = Color(0, 0, 0, 255),
model = {"models/player/alyx.mdl"},
description = [[Tu es un Civils.]],
weapons = {},
command = "civils",
max = 0,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "civils"
PlayerSpawn = function(ply) ply:SetHealth(300) ply:SetMaxHealth(300) end,
})


l'erreur :

[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 32.
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 'PlayerSpawn' at line 32.

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

thepsyca

Psychopathe
Messages
2 164
Score réaction
648
Points
365
La virgule après la ligne de category
 
  • Initiateur de la discussion
KanekiKakuja

KanekiKakuja

Bambi
Messages
9
Score réaction
0
Points
40
thepsyca à dit:
La virgule après la ligne de category
Merci beaucoup éffectivement c'étais cela j'ai pas fais attention je t'en remercie encore ^^
 
Discord d'entraide
Rejoignz-nous sur Discord