- Initiateur de la discussion
Demonyak777
Nouveau né
- Messages
- 10
- Score réaction
- 0
- Points
- 20
Salut a tous , d'habitude j'arrive a régler la plus part de mes erreur LUA...
mais la j'avoue que je suis entrain de sécher totalement , et surtout j'me prend bien la tète !
cela fait trois jours que j’essaie de régler mon soucis sans succès...
Voici mon code métier qui pose soucis...
TEAM_MEMBREDUSTAFF = DarkRP.createJob("** MEMBRE DU STAFF ** * MAJ *", {mais la j'avoue que je suis entrain de sécher totalement , et surtout j'me prend bien la tète !
cela fait trois jours que j’essaie de régler mon soucis sans succès...
Voici mon code métier qui pose soucis...
color = Color(17, 163, 23, 255),
model = {
"models/player/lulsec.mdl",
"models/player/aiden_pearce.mdl"
},
description = [[ADMIN / MODÉRATEURS / [ C'EST ICI ] ]],
weapons = {"pocket", "keys", "portefeuille", "m9k_knife", "moneygun", "idcard"},
command = "membredustaff",
max = 0,
salary = 1000,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Other",
PlayerSpawn = function(ply)
ply:SetMaxHealth(500)
ply:SetHealth(500)
ply:SetArmor(500)
customCheck = function(ply) return CLIENT or
table.HasValue({'superadmin', 'admin', 'vip'}, ply:GetNWString('usergroup'))
end
})
Voici ce que la console steam me dit :
There are 2 Lua problems!
Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 141.
The best help I can give you is this:
Right before the '}', Lua encountered something it could not make sense of.
Hints:
- Did you forget something here? (Perhaps a closing bracket)
- Is it a typo?
------- End of Simplerr error -------
[ERROR] A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 697.
The best help I can give you is this:
DarkRP was unable to introduce player "DEMONYAK49 [ Dev WhiteCityRP ]" 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 -------
PS: Je vous met un Screenshots pour voir les ligne de codes correctement
Merci d'avance pour votre aide et bon Développement / Jeu a tous !
Pièces jointes
- d.png80.8 KB Vues: 12