- Initiateur de la discussion
M
Mehdi2904
Geek suprême
- Messages
- 848
- Score réaction
- 88
- Points
- 145
J'ai un LUA problem. Je sais qu'ils disent nimporte quoi mais:
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 20.
The best help I can give you is this:
Right before the 'TEAM_STAFF', Lua expected to read an '='-sign, but it didn't.
Hints:
- Did you simply forget the '='-sign?
- Did you forget a comma?
- Is this supposed to be a local variable?
---------------------------------------------------------
TEAM_STAFF = DarkRP.createJob("Staff", {
color = Color(0, 0, 0, 255),
model = {"models/player/anon/anon.mdl"},
description = [[Job réservé aux membres du staff]],
weapons = {},
command = "staff",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin","admin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Vous devez être un membre du staff",
})
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 20.
The best help I can give you is this:
Right before the 'TEAM_STAFF', Lua expected to read an '='-sign, but it didn't.
Hints:
- Did you simply forget the '='-sign?
- Did you forget a comma?
- Is this supposed to be a local variable?
---------------------------------------------------------
TEAM_STAFF = DarkRP.createJob("Staff", {
color = Color(0, 0, 0, 255),
model = {"models/player/anon/anon.mdl"},
description = [[Job réservé aux membres du staff]],
weapons = {},
command = "staff",
max = 0,
salary = 0,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin","admin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Vous devez être un membre du staff",
})