Torrents Stats
- Partagées
- 130 Go
- Téléchargées
- 0 bytes
- Ratio
- -
- Messages
- 50
- J'aime
- 14
- Trophées
- 23
- Inscrit
- 28 Novembre 2015
Donc voila il me dit qu'il y'a une erreur alors que je veut juste que le maire soit accesible au VIP et VIP+ :
L'erreur précise que la console me dit est :
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 343.
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 -------
TEAM_MAIRE = DarkRP.createJob("Maire", {
color = Color(255, 0, 0, 255),
model = {"models/player/breen.mdl"},
description = [[Vous etes le chef de la ville c'est vous qui régner sur la ville]],
weapons = {"weapon_fists","weapon_arc_atmcard","itemstore_pickup"},
command = "maire",
max = 1,
salary = 50,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Civil Protection",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Le maire est mort il n'y à plus de maire!")
else
DarkRP.notifyAll(0, 4, "Le maire est mort il n'y à plus de maire!")
customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "VIP" or ply:IsAdmin() end,
CustomCheckFailMsg = "Ceci est un Rôle donateur !",
customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "VIP+" or ply:IsAdmin() end,
CustomCheckFailMsg = "Ceci est un Rôle donateur !",
})
L'erreur précise que la console me dit est :
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 343.
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 -------
TEAM_MAIRE = DarkRP.createJob("Maire", {
color = Color(255, 0, 0, 255),
model = {"models/player/breen.mdl"},
description = [[Vous etes le chef de la ville c'est vous qui régner sur la ville]],
weapons = {"weapon_fists","weapon_arc_atmcard","itemstore_pickup"},
command = "maire",
max = 1,
salary = 50,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Civil Protection",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Le maire est mort il n'y à plus de maire!")
else
DarkRP.notifyAll(0, 4, "Le maire est mort il n'y à plus de maire!")
customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "VIP" or ply:IsAdmin() end,
CustomCheckFailMsg = "Ceci est un Rôle donateur !",
customCheck = function(ply) return CLIENT or ply:GetNWString("usergroup") == "VIP+" or ply:IsAdmin() end,
CustomCheckFailMsg = "Ceci est un Rôle donateur !",
})