Erreur lua a l'aides

  • Initiateur de la discussion
N

NAANTUSIAAIZA

Têtard
Messages
4
Score réaction
0
Points
5
Bonjour mon Erreur est la suivante :


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

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

[ERROR] A runtime error has occurred in "gamemodes/starwarsrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 714.
The best help I can give you is this:

DarkRP was unable to introduce player "<hsv>Zayna Von Ashlëen</hsv>" to the game. Expect further errors and shit generally being fucked!

Hints:
- This error most likely does not stand on its own, and previous serverside errors have a very good chance of telling you the cause.
- Note that errors from another addon could cause this. Specifically when they're thrown during 'PlayerInitialSpawn'.
- This error can also be caused by some other addon returning a value in 'PlayerInitialSpawn', though that is less likely.
- Errors in your DarkRP configuration (jobs, shipments, etc.) could also cause this. Earlier errors should tell you when this is the case.

The responsibility for the error above lies with (the authors of) one (or more) of these files:





JOB CONCERNER





TEAM_501CPL = DarkRP.createJob("Caporal 501st", {
color = Color(0, 101, 255, 255),
model = {
"models/player/gideon/501st/501st_trooper/501st_trooper.mdl",
"models/player/gideon/501st/501st_snow/501st_snow.mdl"
},
Description = [[Vous êtes un Caporal de la 501st .]],
weapons = {"rw_sw_dc15a_o", "rw_sw_dc15s", "cross_arms_swep", "salute_swep", "comlink_swep", "wep_jack_job_drpradio"},
command = "501CPL",
max = 5,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "501st"
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(200)
end
})


Merci
 
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
356
Points
315
Tu as oublier une ',' après le "category"
 
  • Initiateur de la discussion
N

NAANTUSIAAIZA

Têtard
Messages
4
Score réaction
0
Points
5
Non toujours pas
 
  • Initiateur de la discussion
N

NAANTUSIAAIZA

Têtard
Messages
4
Score réaction
0
Points
5
jai ceci qui a maintenant Enfin de compte :
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 228.
The best help I can give you is this:

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

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

[ERROR] A runtime error has occurred in "gamemodes/starwarsrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 714.
The best help I can give you is this:

DarkRP was unable to introduce player "<hsv>Zayna Von Ashlëen</hsv>" to the game. Expect further errors and shit generally being fucked!

Hints:
- This error most likely does not stand on its own, and previous serverside errors have a very good chance of telling you the cause.
- Note that errors from another addon could cause this. Specifically when they're thrown during 'PlayerInitialSpawn'.
- This error can also be caused by some other addon returning a value in 'PlayerInitialSpawn', though that is less likely.
- Errors in your DarkRP configuration (jobs, shipments, etc.) could also cause this. Earlier errors should tell you when this is the case.

The responsibility for the error above lies with (the authors of) one (or more) of these files:



TEAM_501TP = DarkRP.createJob("Tup de la 501st et Compagnie Torrent", {
color = Color(0, 101, 255, 255),
model = {
"models/player/gideon/501st/501st_tup/501st_tup.mdl",
"models/player/gideon/501st/501st_snow/501st_snow.mdl"
},
Description = [[Vous êtes Dogma de la 501st et Compagnie Torrent .]]
weapons = {"rw_sw_dc15a_o", "rw_sw_dc15s", "cross_arms_swep", "salute_swep", "comlink_swep", "wep_jack_job_drpradio"},
command = "501TP",
max = 5,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "501st",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(200)
end
})
 
C

Chehadeh1

Geek
Messages
62
Score réaction
2
Points
60
Alors la :S tout ce que moi je peux faire c'est te proposer ceci (j'ai repris ton code que j'ai intégré à un de mes métiers ^^

TEAM_501TP = DarkRP.createJob("Tup de la 501st et Compagnie Torrent", {
color = Color(0, 101, 255, 255),
model = {
"models/player/gideon/501st/501st_tup/501st_tup.mdl",
"models/player/gideon/501st/501st_snow/501st_snow.mdl"
},
description = [[Vous êtes Dogma de la 501st et Compagnie Torrent .]],
weapons = { "rw_sw_dc15a_o", "rw_sw_dc15s", "cross_arms_swep", "salute_swep", "comlink_swep", "wep_jack_job_drpradio" },
command = "501st",
max = 5,
salary = 250,
admin = 0,
vote = false,
candemote = false,
category = "501st",
hasLicense = false,
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(200)
end
})
 
  • Administration
Numerix

Numerix

Admin
Membre du Staff
Messages
1 913
Score réaction
356
Points
315
Il manquait juste une virgule après la description
 
  • Initiateur de la discussion
N

NAANTUSIAAIZA

Têtard
Messages
4
Score réaction
0
Points
5
Je vais essayer
 
C

Chehadeh1

Geek
Messages
62
Score réaction
2
Points
60
Discord d'entraide
Rejoignz-nous sur Discord