• Darkrp Jobs Error
    3 replies, posted
Everytime I try to create a new job or something i allways get an error. Error:[ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:100: unexpected symbol near ',' 1. unknown - addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:0 Another Error: [ERROR] gamemodes/darkrp/gamemode/modules/voterestrictions/sv_init.lua:11: table index is nil 1. unknown - gamemodes/darkrp/gamemode/modules/voterestrictions/sv_init.lua:11 2. include - [C]:-1 3. unknown - gamemodes/darkrp/gamemode/init.lua:57 My Darkrp job list: [CODE] TEAM_SWATC = DarkRP.createJob("S.W.A.T Cheif", { color = Color(80, 45, 0, 255), model = "models/player/swat.mdl", description = [[This is a donator special job, your duty is to heal on of your wounded operatives. You should stay in the PD until backup is needed. Do everything you can to keep the city safe. You can heal your team, but it's not optinal unless theres no medics alive. If theres no mayor, you're in charge.]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "weapon_ak472", "ls_sniper", "weapon_m42", "weapon_mp52", "stunstick", "door_ram", "weaponchecker", "med_kit"}, command = "swat", max = 1, salary = 200, admin = 0, vote = true, hasLicense = true, }) TEAM_SWATM = DarkRP.createJob("S.W.A.T Medic", { color = Color(80, 45, 0, 255), model = "models/player/swat.mdl", description = [[This is a donator special job, your duty is to heal on of your wounded operatives. You should stay in the PD until backup is needed. Do everything you can to keep the city safe. You also keep your team healed.]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "weapon_ak472", "ls_sniper", "weapon_m42", "weapon_mp52", "stunstick", "door_ram", "weaponchecker", "med_kit"}, command = "swatm", max = 3, salary = 100, admin = 0, vote = true, hasLicense = true, }) TEAM_SWAT = DarkRP.createJob("S.W.A.T", { color = Color(80, 45, 0, 255), model = "models/player/swat.mdl", description = [[This is a donator special job, your duty is to heal on of your wounded operatives. You should stay in the PD until backup is needed. Do everything you can to keep the city safe.]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "weapon_ak472", "ls_sniper", "weapon_m42", "weapon_mp52", "stunstick", "door_ram", "weaponchecker"}, command = "swat", max = 3, salary = 100, admin = 0, vote = true, hasLicense = true, }) TEAM_DRUG = DarkRP.createJob("Drug Dealer", { color = Color(80, 45, 0, 255), model = "models/Eli.mdl", description = [[You're a drug dealer. You sell anonymous drugs. doing /advert will be instant demotion]], weapons = {}, command = "drug", max = 3, salary = 15, admin = 0, vote = false, hasLicense = false }) TEAM_THIEF = AddExtraTeam("Thief", { color = Color(0, 153, 204), model = "models/kane_robber_masked.mdl", description = [[Raid People for money, hold them up, steal printers, Raid The CPS!]], weapons = {"weapon_deagle2","lockpick", "keypad_cracker", "wDclimb_swep2", "weapon_fists"}, command = "Thief", max = 5, salary = 50, admin = 0, vote = false, hasLicense = false, candemote = true, mayorCanSetSalary = false }) TEAM_PROTHIEF = AddExtraTeam("Pro Thief", { color = Color(0, 153, 204), VIPOnly = true, model = "models/kane_robber_masked.mdl", description = [[Raid People for money, hold them up, steal printers, Raid The CPS!]], weapons = {"weapon_deagle2","ninjalockpick", "keypad_cracker", "climb_swep2", "weapon_fists"}, command = "ProThief", max = 4, salary = 65, admin = 0, vote = false, hasLicense = false, candemote = true, mayorCanSetSalary = false, customCheck = function(ply) return table.HasValue({"superadmin", "admin", , "headadmin", "vip", "vip+", "vip++", "donator", "donator+", "donator++", "trialadmin"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = "You need to be a VIP donor to be this job!." }) [/CODE] Please help thanks. I'm also looking for a really good coder, I'm paying $20 right now. I will pay you more after you have coded some things for me. Add me on steam: slayingcorpse3. Don't ask about the name its a bought account.
You have an extra comma in the table.HasValue of your Pro Thief's customCheck. [lua]"admin", , "headadmin",[/lua]
[QUOTE=Bo98;43845367]You have an extra comma in the table.HasValue of your Pro Thief's customCheck. [lua]"admin", , "headadmin",[/lua][/QUOTE] Oh thanks allot. What about the otehr errors does anyone know?
Sometimes one error causes another. Both should be cleared in this case unless a new one appears.
Sorry, you need to Log In to post a reply to this thread.