Can someone correct this code?

This code isnt working
the console says this and i dont know what it means
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/entities.lua:36: ‘}’ expected (to close ‘{’ at line 30) near ‘allowed’

  1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/entities.lua:0

DarkRP.createEntity( “Stove”, {
ent = “eml_stove”,
model = “models/props_c17/furniturestove001a.mdl”,
price = 1500,
max = 2,
cmd = “buystove”,
allowed = {TEAM_METH},
category = “Printer”,
– CustomCheck
})

DarkRP.createEntity(“Gas Canister”, {
ent = “eml_gas”,
model = “models/props_c17/canister01a.mdl”,
price = 0,
max = 20,
cmd = “buygascanister”
allowed = {TEAM_METH},
category = “Printer”,
– CustomCheck
})

DarkRP.createEntity(“Liquid Iodine”, {
ent = “eml_iodine”,
model = “models/props_lab/jar01b.mdl”,
price = 0,
max = 20,
cmd = “buyiodine”
allowed = {TEAM_METH},
category = “Printer”,
– CustomCheck
})

DarkRP.createEntity(“Jar”, {
ent = “eml_jar”,
model = “models/props_lab/jar01a.mdl”,
price = 0,
max = 20,
cmd = “buyjar”
allowed = {TEAM_METH},
category = “Printer”,
– CustomCheck
})

DarkRP.createEntity(“Muriatic Acid”, {
ent = “eml_macid”,
model = “models/props_junk/garbage_plasticbottle001a.mdl”,
price = 0,
max = 20,
cmd = “buymacid”
allowed = {TEAM_METH},
category = “Printer”,
– CustomCheck
})

DarkRP.createEntity(“Pot”, {
ent = “eml_pot”,
model = “models/props_c17/metalPot001a.mdl”,
price = 0,
max = 20,
cmd = “buypot”
allowed = {TEAM_METH},
category = “Printer”,
– CustomCheck
})

DarkRP.createEntity(“Special Pot”, {
ent = “eml_spot”,
model = “models/props_c17/metalPot001a.mdl”,
price = 0,
max = 20,
cmd = “buyspot”
allowed = {TEAM_METH},
category = “Printer”,
– CustomCheck
})

DarkRP.createEntity(“Stove”, {
ent = “eml_stove”,
model = “models/props_c17/furnitureStove001a.mdl”,
price = 0,
max = 5,
cmd = “buystove”
allowed = {TEAM_METH},
category = “Printer”,
– CustomCheck
})

DarkRP.createEntity(“Liquid Sulfur”, {
ent = “eml_sulfur”,
model = “models/props_lab/jar01b.mdl”,
price = 0,
max = 20,
cmd = “buysulfur”
allowed = {TEAM_METH},
category = “Printer”,
– CustomCheck
})

DarkRP.createEntity(“Water”, {
ent = “eml_water”,
model = “models/props_junk/garbage_plasticbottle003a.mdl”,
price = 0,
max = 20,
cmd = “buywater”
allowed = {TEAM_METH},
category = “Printer”,
– CustomCheck
})

You need commas after cmd = “buysomething”

[quote=“Elite Muffin1, post:1, topic:210071”]

This code isnt working
the console says this and i dont know what it means


 [ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/entities.lua:36: '}' expected (to close '{' at line 30) near 'allowed'
  1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/entities.lua:0




DarkRP.createEntity( "Stove", { 
   ent = "eml_stove",
   model = "models/props_c17/furniturestove001a.mdl",
   price = 1500,
   max = 2,
   cmd = "buystove",
   allowed = {TEAM_METH},
   category = "Printer",
   -- CustomCheck
})

DarkRP.createEntity("Gas Canister", {
	ent = "eml_gas",
	model = "models/props_c17/canister01a.mdl",
	price = 0,
	max = 20,
	cmd = "buygascanister"
    allowed = {TEAM_METH},
    category = "Printer",
   -- CustomCheck
})

DarkRP.createEntity("Liquid Iodine", {
	ent = "eml_iodine",
	model = "models/props_lab/jar01b.mdl",
	price = 0,
	max = 20,
	cmd = "buyiodine"
	allowed = {TEAM_METH},
    category = "Printer",
   -- CustomCheck
})

DarkRP.createEntity("Jar", {
	ent = "eml_jar",
	model = "models/props_lab/jar01a.mdl",
	price = 0,
	max = 20,
	cmd = "buyjar"
	allowed = {TEAM_METH},
    category = "Printer",
   -- CustomCheck
})

DarkRP.createEntity("Muriatic Acid", {
	ent = "eml_macid",
	model = "models/props_junk/garbage_plasticbottle001a.mdl",
	price = 0,
	max = 20,
	cmd = "buymacid"
	allowed = {TEAM_METH},
    category = "Printer",
   -- CustomCheck
})

DarkRP.createEntity("Pot", {
	ent = "eml_pot",
	model = "models/props_c17/metalPot001a.mdl",
	price = 0,
	max = 20,
	cmd = "buypot"
	allowed = {TEAM_METH},
    category = "Printer",
   -- CustomCheck
})

DarkRP.createEntity("Special Pot", {
	ent = "eml_spot",
	model = "models/props_c17/metalPot001a.mdl",
	price = 0,
	max = 20,
	cmd = "buyspot"
	allowed = {TEAM_METH},
    category = "Printer",
   -- CustomCheck
})

DarkRP.createEntity("Stove", {
	ent = "eml_stove",
	model = "models/props_c17/furnitureStove001a.mdl",
	price = 0,
	max = 5,
	cmd = "buystove"
	allowed = {TEAM_METH},
    category = "Printer",
   -- CustomCheck
})

DarkRP.createEntity("Liquid Sulfur", {
	ent = "eml_sulfur",
	model = "models/props_lab/jar01b.mdl",
	price = 0,
	max = 20,
	cmd = "buysulfur"
	allowed = {TEAM_METH},
    category = "Printer",
   -- CustomCheck
})

DarkRP.createEntity("Water", {
	ent = "eml_water",
	model = "models/props_junk/garbage_plasticbottle003a.mdl",
	price = 0,
	max = 20,
	cmd = "buywater"
	allowed = {TEAM_METH},
    category = "Printer",
   -- CustomCheck
})

Now I have put it into code format I can help you…

[editline]17th August 2015[/editline]

Their is not a “,” after most of the cmd lines for example


 DarkRP.createEntity("Gas Canister", {
	ent = "eml_gas",
	model = "models/props_c17/canister01a.mdl",
	price = 0,
	max = 20,
	cmd = "buygascanister"
    allowed = {TEAM_METH},
    category = "Printer",
   -- CustomCheck
})

#Should be 

DarkRP.createEntity("Gas Canister", {
	ent = "eml_gas",
	model = "models/props_c17/canister01a.mdl",
	price = 0,
	max = 20,
	cmd = "buygascanister", <--- that comma is missing on most lines
    allowed = {TEAM_METH},
    category = "Printer",
   -- CustomCheck
})