- Initiateur de la discussion
Eliott2510
Geek
- Messages
- 27
- Score réaction
- 3
- Points
- 80
bonjour, voila mes jobs de mon serveur marche tres bien mais un soucis je suis en train de creer mes job vip avec le grade VIP que j'ai creer dans l'ulx et lorsque je rajoute la ligne
"customCheck = function(ply) return ply:GetNWString("usergroup") == "VIP" end" mon serv bug et je ne vois plut les jobs dans f4 alors que celui la marche :
TEAM_ADMIN = DarkRP.createJob("Staff De AmazingLife", {
color = Color(95, 61, 168, 255),
model = {"models/player/anon/anon.mdl"},
description = [[Job pour les admins .]],
weapons = {"weapon_fists", "itemstore_checker", "idcard", "weapon_arc_atmcard", "weapon_r_handcuffs", "weaponchecker"},
command = "Staff",
max = 0,
salary = 50000,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"admin", "superadmin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "vous n'êtes pas un membre du staff.",
})
donc je ne comprend pas et l'erreur que j c ça
------- End of Simplerr error -------1. error - [C]:-12. doInclude - gamemodes/darkrp/gamemode/libraries/simplerr.lua:5303. loadCustomDarkRPItems - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:1384. Call - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:1495. unknown - gamemodes/darkrp/gamemode/init.lua:111[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 129.The best help I can give you is this:There is an opening '{' bracket at line 107, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 129.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: ({)}.
svp peut on m'aider.
le job avec le vip c lui :
TEAM_GIGN2 = DarkRP.createJob("GIGN Sniper -VIP-", {
color = Color(47, 11, 191, 255),
model = {"models/MSF/soldier2.mdl"},
description = [[Vous etes un GIGN sniper vous etes plus grader que gign ]],
weapons = {"weapon_fists", "fas2_m24", "fas2_mp5k", "fas2_ots33", "idcard", "weapon_arc_atmcard", "stungun", "weapon_r_handcuffs", "wep_jack_job_drpradio", "weaponchecker"},
command = "gignvip",
max = 7,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(250)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Un GIGN est mort")
end
customCheck = function(ply) return ply:GetNWString("usergroup") == "VIP" end
})
"customCheck = function(ply) return ply:GetNWString("usergroup") == "VIP" end" mon serv bug et je ne vois plut les jobs dans f4 alors que celui la marche :
TEAM_ADMIN = DarkRP.createJob("Staff De AmazingLife", {
color = Color(95, 61, 168, 255),
model = {"models/player/anon/anon.mdl"},
description = [[Job pour les admins .]],
weapons = {"weapon_fists", "itemstore_checker", "idcard", "weapon_arc_atmcard", "weapon_r_handcuffs", "weaponchecker"},
command = "Staff",
max = 0,
salary = 50000,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"admin", "superadmin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "vous n'êtes pas un membre du staff.",
})
donc je ne comprend pas et l'erreur que j c ça
------- End of Simplerr error -------1. error - [C]:-12. doInclude - gamemodes/darkrp/gamemode/libraries/simplerr.lua:5303. loadCustomDarkRPItems - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:1384. Call - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:1495. unknown - gamemodes/darkrp/gamemode/init.lua:111[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 129.The best help I can give you is this:There is an opening '{' bracket at line 107, but this bracket is never closed or not closed in time. It was expected to be closed before the 'customCheck' at line 129.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: ({)}.
svp peut on m'aider.
le job avec le vip c lui :
TEAM_GIGN2 = DarkRP.createJob("GIGN Sniper -VIP-", {
color = Color(47, 11, 191, 255),
model = {"models/MSF/soldier2.mdl"},
description = [[Vous etes un GIGN sniper vous etes plus grader que gign ]],
weapons = {"weapon_fists", "fas2_m24", "fas2_mp5k", "fas2_ots33", "idcard", "weapon_arc_atmcard", "stungun", "weapon_r_handcuffs", "wep_jack_job_drpradio", "weaponchecker"},
command = "gignvip",
max = 7,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(250)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
DarkRP.notifyAll(0, 4, "Un GIGN est mort")
end
customCheck = function(ply) return ply:GetNWString("usergroup") == "VIP" end
})