entiter que pour un jobs

  • Initiateur de la discussion
F

Furax133

Bambi
Messages
54
Score réaction
1
Points
35
bonjour quand je rajoute allowed = {TEAM_FABRIQUANTM} a une entiter ça me met

Ma Console ::

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


une personne aurais une idée
 
RedTroz

RedTroz

Geek suprême
Messages
825
Score réaction
233
Points
195
Tu as peut-être oublié de fermer avec un }

Au pire, envoie le code.
 
  • J'aime
Réactions: Furax133
  • Initiateur de la discussion
F

Furax133

Bambi
Messages
54
Score réaction
1
Points
35
voillla le entities.lua


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

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

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

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

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

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

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

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

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

RedTroz

Geek suprême
Messages
825
Score réaction
233
Points
195
Je vois,

Tu as oublié une virgule "," après le cmd.
En gros :


Code:
DarkRP.createEntity("Gas Canister", {
ent = "eml_gas",
model = "models/props_c17/canister01a.mdl",
price = 0,
max = 20,
cmd = "buygascanister",
allowed = {TEAM_FABRIQUANTM}
})
DarkRP.createEntity("Liquid Iodine", {
ent = "eml_iodine",
model = "models/props_lab/jar01b.mdl",
price = 0,
max = 20,
cmd = "buyiodine",
allowed = {TEAM_FABRIQUANTM}
})
DarkRP.createEntity("Jar", {
ent = "eml_jar",
model = "models/props_lab/jar01a.mdl",
price = 0,
max = 20,
cmd = "buyjar",
allowed = {TEAM_FABRIQUANTM}
})
DarkRP.createEntity("Muriatic Acid", {
ent = "eml_macid",
model = "models/props_junk/garbage_plasticbottle001a.mdl",
price = 0,
max = 20,
cmd = "buymacid",
allowed = {TEAM_FABRIQUANTM}
})
DarkRP.createEntity("Pot", {
ent = "eml_pot",
model = "models/props_c17/metalPot001a.mdl",
price = 0,
max = 20,
cmd = "buypot",
allowed = {TEAM_FABRIQUANTM}
})
DarkRP.createEntity("Special Pot", {
ent = "eml_spot",
model = "models/props_c17/metalPot001a.mdl",
price = 0,
max = 20,
cmd = "buyspot",
allowed = {TEAM_FABRIQUANTM}
})
DarkRP.createEntity("Stove", {
ent = "eml_stove",
model = "models/props_c17/furnitureStove001a.mdl",
price = 0,
max = 5,
cmd = "buystove",
allowed = {TEAM_FABRIQUANTM}
})
DarkRP.createEntity("Liquid Sulfur", {
ent = "eml_sulfur",
model = "models/props_lab/jar01b.mdl",
price = 0,
max = 20,
cmd = "buysulfur",
allowed = {TEAM_FABRIQUANTM}
})
DarkRP.createEntity("Water", {
ent = "eml_water",
model = "models/props_junk/garbage_plasticbottle003a.mdl",
price = 0,
max = 20,
cmd = "buywater",
allowed = {TEAM_FABRIQUANTM}
})
 
  • Initiateur de la discussion
F

Furax133

Bambi
Messages
54
Score réaction
1
Points
35
a quelle entiter ???
 
RedTroz

RedTroz

Geek suprême
Messages
825
Score réaction
233
Points
195
Furax133 à dit:
a quelle entiter ???
Toutes.

J'ai corrigé le code.

Fais un copié/collé de celui que j'ai envoyé.
 
  • Initiateur de la discussion
F

Furax133

Bambi
Messages
54
Score réaction
1
Points
35
ok
 
  • Initiateur de la discussion
F

Furax133

Bambi
Messages
54
Score réaction
1
Points
35
merci a toi
RedTroz
 
RedTroz

RedTroz

Geek suprême
Messages
825
Score réaction
233
Points
195
Discord d'entraide
Rejoignz-nous sur Discord