MrBugsFive Posted April 11, 2015 Share Posted April 11, 2015 (edited) Alguem poderia me ajuda com esse erro ?? Error: [DayZ-MTA]\DayZ\survivorSystem.lua:666: attempt to perform arithmetic on local 'value' (a nil value) . Codigo: survivorSystem.lua - completo: local vehicleDataTableForTent = { {"Wood Pile"}, {"Activated Carbon"}, {"Money"}, {"Minhoca"}, {"Bear Trap"}, {"Bandage"}, {"Antidot"}, {"Water Bottle"}, {"Pasta Can"}, {"Beans Can"}, {"Burger"}, {"Box of Matches"}, {"M911 Mag"}, {"M9 SD Mag"}, {".45ACP Round"}, {"M911"}, {"M9 SD"}, {"Winchester 1866"}, {"PPK"}, {"Hunting Knife"}, {"Morphine"}, {"Firefighter Axe"}, {"Pizza"}, {"Box Cereal"}, {"Rotten Meat"}, {"Soda Bottle"}, {"Pepsi"}, {"Coca Cola"}, {"Montadew"}, -- Comida Ruim {"Burger Bad"}, {"Pizza Bad"}, {"Box Cereal Bad"}, {"Pasta Can Bad"}, {"Beans Can Bad"}, {"Empty Gas Canister"}, {"Full Gas Canister"}, {"Roadflare"}, {"Milk"}, {"PPK Mag"}, {"MP5A5 Mag"}, {"AK Mag"}, {"30rnd STANAG"}, {"FlashBang"}, {"Grenade"}, {"Revolver"}, {"Sawn-Off Shotgun"}, {"SPAZ-12 Combat Shotgun"}, {"MP5A5"}, {"Watch"}, {"Medic Kit"}, {"Heat Pack"}, {"Lee Enfield"}, --{"TEC-9"}, {"AK-47"}, --{"M136 Rocket Launcher"}, {"Blood Bag"}, {"GPS"}, {"Map"}, {"Toolbox"}, {"Wire Fence"}, {"Мina"}, {"Tire"}, {"Engine"}, --{"M136 Rocket"}, {"DMR Mag"}, {"Lee Enfield Mag"}, {"M4A1 CCO SD"}, {"DMR"}, --{"Heat-Seeking RPG"}, {"Satchel"}, {"Infrared Goggles"}, {"Night Vision Goggles"}, {"Tent"}, {"Raw Meat"}, {"Cooked Meat"}, {"Camouflage Clothing"}, {"Ghillie Suit"}, {"Civilian Clothing"}, {"Survivor Clothing"}, {"Painkiller"}, {"Binoculars"}, {"Empty Water Bottle"}, {"Empty Soda Cans"}, {"Scruffy Burgers"}, {"1866 Slug"}, {"2Rnd. Slug"}, {"SPAZ-12 Pellet"}, {"Assault Pack (ACU)"}, {"Child Briefcase"}, {"Alice Pack"}, {"Radio Device"}, {"Coyote Backpack"}, {"Czech Backpack"}, {"Mountain Backpack"}, {"O.S Pack"}, {"LHT Ghillie Pack"}, {"Krysset Backpack"}, {"Anarchy Assault Pack"}, --{"Thermal GPS"}, --{"GPS Jammer"}, {"Baseball Bat"}, {"Shovel"}, {"Golf Club"}, {"Fishing rod"}, {"Pickaxe"}, --[[ {"Diary, Page 1"}, {"Diary, Page 2"}, {"Diary, Page 3"}, {"Diary, Page 4"}, {"Diary, Page 5"}, {"Diary, Page 6"}, {"Diary, Page 7"}, {"Diary, Page 8"}, {"Small Note 1"}, {"Small Note 2"}, {"Small Note 3"}, {"Research Report 1"}, {"Research Report 2"}, {"Letter to Mum"}, ]] } weaponAmmoTable = { --[[ ["Pistol Ammo"] = { {"Pistol",22}, {"Silenced Pistol",23}, {"Revolver",24}, }, ]]-- ["G13 Mag"] = { {"G13",22}, }, ["M9 SD Mag"] = { {"M9 SD",23}, }, [".45ACP Round"] = { {"Revolver",24}, }, --[[ ["Smg Ammo"] = { {"Uzi",28}, {"TEC-9",32}, {"MP5",29}, }, ]]-- ["PPK Mag"] = { {"PPK",28}, }, ["MP5A5 Mag"] = { {"MP5A5",29}, }, --[[["Assault Ammo"] = { {"AK-47",30}, {"M4A1 CCO SD",31}, }, ]] ["AK Mag"] = { {"AK-47",30}, }, ["30rnd STANAG"] = { {"M4A1 CCO SD",31}, }, --[[ ["Shotgun Ammo"] = { {"Shotgun",25}, {"Sawn-Off Shotgun",26}, {"SPAZ-12 Combat Shotgun",27}, }, ]] ["1866 Slug"] = { {"Winchester 1866",25}, }, ["2Rnd. Slug"] = { {"Sawn-Off Shotgun",26}, }, ["SPAZ-12 Pellet"] = { {"SPAZ-12 Combat Shotgun",27}, }, --[[ ["Sniper Ammo"] = { {"Country Rifle",33}, {"Sniper Rifle",34}, }, ]] ["DMR Mag"] = { {"DMR",34}, }, ["Lee Enfield Mag"] = { {"Lee Enfield",33}, }, --[[ ["Rocket Ammo"] = { {"Heat-Seeking RPG",36}, {"Rocket Launcher",35}, }, ]] ["M136 Rocket"] = { {"Heat-Seeking RPG",36}, {"M136 Rocket Launcher",35}, }, ["others"] = { {"Parachute",46}, {"Satchel",39}, {"FlashBang",17}, {"Grenade",16}, {"Hunting Knife",4}, {"Firefighter Axe",8}, {"Binoculars",43}, {"Baseball Bat",5}, {"Shovel",6}, {"Golf Club",2}, {"Fishing rod",7}, {"Pickaxe",3}, {"Radio Device",1}, --[[ {"Diary, Page 1",1}, {"Diary, Page 2",1}, {"Diary, Page 3",1}, Edited April 12, 2015 by Guest Link to comment
#RooTs Posted April 11, 2015 Share Posted April 11, 2015 Pls Help My !! Thanks. Não use inglês na nesta partição [ Portuguese / Português ] manter o português, por favor. e não deixe tudo centralizado, manter apenas o texto com a tag pois esse post pode ajudar outras pessoas. Link to comment
Banex Posted April 11, 2015 Share Posted April 11, 2015 e não deixe tudo centralizado, manter apenas o texto com a tag pois esse post pode ajudar outras pessoas. Eu acho que não existe essa regra Link to comment
MrBugsFive Posted April 12, 2015 Author Share Posted April 12, 2015 mais voce sabem como resolver esse erro aqui??? Link to comment
DNL291 Posted April 13, 2015 Share Posted April 13, 2015 'value' deve estar retornando nil. Tente achar onde que deve estar passando nulo para esse argumento da função addPlayerStats. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now