EML error


--[[---------------------------------------------------------------------------
DarkRP custom entities
---------------------------------------------------------------------------

This file contains your custom entities.
This file should also contain entities from DarkRP that you edited.

Note: If you want to edit a default DarkRP entity, first disable it in darkrp_config/disabled_defaults.lua
	Once you've done that, copy and paste the entity to this file and edit it.

The default entities can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua#L111

For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomEntityFields

Add entities under the following line:
---------------------------------------------------------------------------]]

DarkRP.createEntity( "Printer Coolant Cell", { 
   ent = "k_coolant_cell",
   model = "models/items/battery.mdl",
   price = 500,
   max = 3,
   cmd = "buycoolant",
})

DarkRP.createEntity( "Tier 1 Printer", { 
   ent = "k_printer_t1",
   model = "models/props_lab/reciever01a.mdl",
   price = 1000,
   max = 2,
   cmd = "buytier1",
})

DarkRP.createEntity( "Tier 2 Printer", { 
   ent = "k_printer_t2",
   model = "models/props_lab/reciever01a.mdl",
   price = 2500,
   max = 1,
   cmd = "buytier2",
})

DarkRP.createEntity( "Tier 3 Printer", { 
   ent = "k_printer_t3",
   model = "models/props_lab/reciever01a.mdl",
   price = 5000,
   max = 1,
   cmd = "buytier3",
})

DarkRP.createEntity( "Tier 4 Printer", { 
   ent = "k_printer_t4",
   model = "models/props_lab/reciever01a.mdl",
   price = 6000,
   max = 1,
   cmd = "buytier4",
})

DarkRP.createEntity( "Tier 5 Printer", { 
   ent = "k_printer_t5",
   model = "models/props_lab/reciever01a.mdl",
   price = 7500,
   max = 1,
   cmd = "buytier5",
})

DarkRP.createEntity( "Printer Upgrader", { 
   ent = "k_printer_upgrade",
   model = "models/props_junk/cardboard_box004a_gib01.mdl",
   price = 750,
   max = 3,
   cmd = "buyprinterupgrade",
})

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

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

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

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

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

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

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

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

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


[ERROR] Lua is unable to understand file "darkrp_customthings/entities.lua" because its author made a mistake around line number 144.
The best help I can give you is this:

There is an opening '{' bracket at line 139, but this bracket is never closed or not closed in time. It was expected to be closed before the 'allowed' at line 144.

Hints:
	- Did you forget a comma?
	- All open brackets ({, (, [) must have a matching closing bracket. Are you sure it's there?
	- Brackets must be opened and closed in the right order. This will work: ({}), but this won't: ({)}.

------- End of Simplerr error -------


http://forum.facepunch.com/showthread.php?t=1472258

Dude, stop making threads complaining that you can’t edit config files. The error literally tells you what you did wrong. Use your own eyes and brain.

i cant see whats wrong

I’ll give you a hint



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


Seriously man, it tells you the line number – I can’t even see line numbers and I found the problem.

I had this same problem, I’m a dev and co-owner of a server coming up soon (InsanityRP)! Anyway to fix this:

DarkRP.createEntity( “Gas Canister”, {
ent = “eml_gas”,
model = “models/props_c17/canister01a.mdl”,
price = 500,
max = 1,
cmd = “buygascanister”,
allowed = {TEAM_DRUG},
– CustomCheck
})

Theres a example, do this to all and it will work :smiley:

[editline]30th August 2015[/editline]

You failed, It gives no clue what so ever. You have to do something completely different.

[editline]30th August 2015[/editline]

And again, failed. That’s not the problem. This is the fix:

DarkRP.createEntity( “Gas Canister”, {
ent = “eml_gas”,
model = “models/props_c17/canister01a.mdl”,
price = 500,
max = 1,
cmd = “buygascanister”,
allowed = {TEAM_DRUG},
– CustomCheck
})

man really? the error message is reallly simple and you just have to read it, if you are really that lazy. dont ask people, we are not here to do your work, we are here to help.