gmod circle printers error

A Forum Thread for Garry's Mod

[ERROR] addons/circle_printers/lua/autorun/autorun_circle.lua:50: '}' expected (to close '{' at line 43) near 'customCheck'
1. unknown - addons/circle_printers/lua/autorun/autorun_circle.lua:0

timer.Simple(4, function()
DarkRP.createCategory{
name = "Circle Printers",
categorises = "entities",
startExpanded = true,
color = Color(0, 119, 255, 255),
canSee = function(ply) return true end,
sortOrder = 1
}

DarkRP.createEntity("Printer Tier 1", {
ent = "circl_printer_amazing_one",
model = "models/props_c17/consolebox01a.mdl",
price = 20000,
max = 2,
category = "Circle Printers",
cmd = "buycircleprinter_amazing"
})
DarkRP.createEntity("Printer Tier 2", {
ent = "circl_printer_amazing_two",
model = "models/props_c17/consolebox01a.mdl",
price = 40000,
max = 2,
category = "Circle Printers",
cmd = "buycircleprinter_amazing2"
})
DarkRP.createEntity("Printer Tier 3", {
ent = "circl_printer_amazing_three",
model = "models/props_c17/consolebox01a.mdl",
price = 60000,
max = 2,
category = "Circle Printers",
cmd = "buycircleprinter_amazing3"
})
DarkRP.createEntity("Printer Tier 4", {
ent = "circl_printer_amazing_four",
model = "models/props_c17/consolebox01a.mdl",
price = 80000,
max = 2,
category = "Circle Printers",
cmd = "buycircleprinter_amazing4"
})
DarkRP.createEntity("VIP Printer Tier 5", {
ent = "circl_printer_amazing_vip1",
model = "models/props_c17/consolebox01a.mdl",
price = 100000,
max = 2,
category = "Circle Printers",
cmd = "buycircleprinter_amazingvip1"
customCheck = function(ply) return ply:IsUserGroup("VIP") end,
customCheck = function(ply) return ply:IsUserGroup("VIP+") end,
customCheck = function(ply) return ply:IsUserGroup("specialuser") end
})
DarkRP.createEntity("VIP Printer Tier 6", {
ent = "circl_printer_amazing_vip2",
model = "models/props_c17/consolebox01a.mdl",
price = 200000,
max = 2,
category = "Circle Printers",
cmd = "buycircleprinter_amazingvip2"
customCheck = function(ply) return ply:IsUserGroup("VIP") end,
customCheck = function(ply) return ply:IsUserGroup("VIP+") end,
customCheck = function(ply) return ply:IsUserGroup("specialuser") end
})
DarkRP.createEntity("VIP+ Printer Tier 7", {
ent = "circl_printer_amazing_vip3",
model = "models/props_c17/consolebox01a.mdl",
price = 300000,
max = 2,
category = "Circle Printers",
customCheck = function(ply) return ply:IsUserGroup("VIP+") end,
customCheck = function(ply) return ply:IsUserGroup("specialuser") end
})
DarkRP.createEntity("VIP+ Printer Tier 8", {
ent = "circl_printer_amazing_vip4",
model = "models/props_c17/consolebox01a.mdl",
price = 400000,
max = 2,
category = "Circle Printers",
customCheck = function(ply) return ply:IsUserGroup("VIP+") end,
customCheck = function(ply) return ply:IsUserGroup("specialuser") end
})
end)
Sign up to access this!

Replies

  • Devieus avatar
    Devieus username pic Joined 8y ago
    Moderator
    ONLINE
    86,416 points Ranked 42nd
    70 medals 6 legendary 13 rare
    • 1st Place - Tutorial Contest Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2015 Medal icon
    • Returned 5000 times Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
    • 2017 Top Contributor Medal icon
    • 15+ Entries! GameBanana’s Christmas Giveaway 2017 Medal icon
    5mo 5mo
    You just gotta love Lua's error reporting, super unhelpful, but clearly trying.

    You're missing a comma on line 49, and also 60.
    Sentinel of the TV remote avatar
    Mantra
    Sentinel of the TV remote
    URL to post:

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Author

AntonGR avatar
AntonGR Joined 5mo ago
Offline

AntonGR
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+
  • 234 Views
  • 1 Posts
  • 5moSubmitted

More Other/Misc Threads

bcp.crwdcntrl.net tracking pixel