Problème darkrp majeur

  • Initiateur de la discussion Vitroze_Gaming_
  • Date de début
  • Initiateur de la discussion
V

Vitroze_Gaming_

Vitroze Gaming
Messages
147
Score réaction
16
Points
120
Salut j'ai un problème avec mon darkrp je spawn sous la map a cause d'un job mais je vois pas l'erreur

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

DarkRP was unable to introduce player "[OSCAR] Vitroze_Gaming" 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:

------- End of Simplerr error -------



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

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

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/darkrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 716.
The best help I can give you is this:

DarkRP was unable to introduce player "[OSCAR] Vitroze_Gaming" 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:

------- End of Simplerr error -------

Voici le code du job

TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(0, 74, 255, 255),
model = {
"models/player/mouss/pn_02.mdl",
"models/player/mouss/pn_01.mdl",
"models/player/mouss/pn_03.mdl"
},
description = [[Vous êtes agent de police de KindRP, vous devez faire régné l'ordre sur la ville]],
weapons = {"fas2_glock20"},
command = "Policier",
max = 8,
salary = 5,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
category = "Service Secours"
PlayerSpawn = function(ply)
ply:SetArmor(50)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Un policier est mort")
end
})
=============================================================================================================================
TEAM_CHIEF = DarkRP.createJob("Commissaire", {
color = Color(0, 74, 255, 255),
model = {
"models/portal2/patrol_02.mdl",
"models/portal2/patrol_04.mdl",
"models/portal2/patrol_05.mdl",
"models/portal2/patrol_06.mdl",
"models/portal2/patrol_07.mdl",
"models/portal2/patrol_08.mdl",
"models/portal2/patrol_09.mdl"
},
description = [[Vous êtes commissaire de la police de KindRP, vous devez faire régné l'ordre sur vos agents et sur la ville]],
weapons = {"fas2_glock20", "fas2_rem870", "fas2_mp5k"},
command = "commisssaire",
max = 1,
salary = 55,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
category = "Service Secours"
PlayerSpawn = function(ply)
ply:SetArmor(100)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Un commissaire de la police est mort")
end
})

Bonne journée
 
CapriH

CapriH

Geek
Messages
172
Score réaction
4
Points
95
iProMx Multi à dit:
Salut j'ai un problème avec mon darkrp je spawn sous la map a cause d'un job mais je vois pas l'erreur

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

DarkRP was unable to introduce player "[OSCAR] Vitroze_Gaming" 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:

------- End of Simplerr error -------



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

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

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/darkrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 716.
The best help I can give you is this:

DarkRP was unable to introduce player "[OSCAR] Vitroze_Gaming" 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:

------- End of Simplerr error -------

Voici le code du job

TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(0, 74, 255, 255),
model = {
"models/player/mouss/pn_02.mdl",
"models/player/mouss/pn_01.mdl",
"models/player/mouss/pn_03.mdl"
},
description = [[Vous êtes agent de police de KindRP, vous devez faire régné l'ordre sur la ville]],
weapons = {"fas2_glock20"},
command = "Policier",
max = 8,
salary = 5,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
category = "Service Secours"
PlayerSpawn = function(ply)
ply:SetArmor(50)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Un policier est mort")
end
})
=============================================================================================================================
TEAM_CHIEF = DarkRP.createJob("Commissaire", {
color = Color(0, 74, 255, 255),
model = {
"models/portal2/patrol_02.mdl",
"models/portal2/patrol_04.mdl",
"models/portal2/patrol_05.mdl",
"models/portal2/patrol_06.mdl",
"models/portal2/patrol_07.mdl",
"models/portal2/patrol_08.mdl",
"models/portal2/patrol_09.mdl"
},
description = [[Vous êtes commissaire de la police de KindRP, vous devez faire régné l'ordre sur vos agents et sur la ville]],
weapons = {"fas2_glock20", "fas2_rem870", "fas2_mp5k"},
command = "commisssaire",
max = 1,
salary = 55,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
category = "Service Secours"
PlayerSpawn = function(ply)
ply:SetArmor(100)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Un commissaire de la police est mort")
end
})

Bonne journée
[ERREUR] Lua ne peut pas comprendre le fichier "darkrp_customthings / jobs.lua" car son auteur a fait une erreur autour de la ligne 70.
La meilleure aide que je puisse vous apporter est la suivante:

Il y a une parenthèse '{' d'ouverture à la ligne 53, mais cette parenthèse n'est jamais fermée ou n'est pas fermée à temps. Il devait être fermé avant le «PlayerSpawn» à la ligne 70.

Astuces:
  • Tu as oublié une virgule?
  • Tous les supports ouverts ({, (, [) doivent avoir un support de fermeture correspondant. Êtes-vous sûr qu'il est là?
  • Les supports doivent être ouverts et fermés dans le bon ordre. Cela fonctionnera: ({}), mais cela ne fonctionnera pas: ({)}.

------- Fin de l'erreur Simplerr -------
 
PierreB

PierreB

Geek suprême
Messages
342
Score réaction
64
Points
130
Tu as oublié une virgule juste après : category = "Service Secours"
 
  • J'aime
Réactions: kirikoumalou
  • Initiateur de la discussion
V

Vitroze_Gaming_

Vitroze Gaming
Messages
147
Score réaction
16
Points
120
Merci pour tous vos réponses je vais essaie tous de suite
 
CapriH

CapriH

Geek
Messages
172
Score réaction
4
Points
95
  • Initiateur de la discussion
V

Vitroze_Gaming_

Vitroze Gaming
Messages
147
Score réaction
16
Points
120
Merci beaucoup sa marche !
 
  • J'aime
Réactions: PierreB
CapriH

CapriH

Geek
Messages
172
Score réaction
4
Points
95
Discord d'entraide
Rejoignz-nous sur Discord