Fmd01 Posted April 22, 2017 Share Posted April 22, 2017 Hi i am trying to rework a shop script/system for a DayZ server but i am having some problems. https://community.multitheftauto.com/modules/resources/doDownload.php?file=[mta-dayz]shop-system_1.1.0.zip&name=[mta-dayz]shop-system.zip I am using this script for the beggining but i am already having troubles.When i start the server is telling me this. shop1s.lua:106:Bad argument @ 'attachElements' [Expected element at argument 1, got nil] shop2s.lua:76: Bad argument @ 'attachElements' [Expected element at argument 1, got nil] But not thats the problem.When i try to buy a m4 i don't get it.My money doesn't go down just didn't buyed it. I can just buy the Hatchet and the map toolbox gps at the first npc. The script is here. shop1s https://pastebin.com/wvhnPxX4 shop1c https://pastebin.com/hYcYV5dg Can you guys tell me what is the problem with it?About 8 hours i am trying to find it but i am can't.The DayZ mode is 0.9.8.1a if someone need it. Link to comment
Administrators Lpsd Posted April 22, 2017 Administrators Share Posted April 22, 2017 shop1s.lua:105 Replace with this: pedCol = createColSphere (-336.56777954102, 1530.0159912109, 75.624549865723, 3) can you show us shop2s.lua? Link to comment
Fmd01 Posted April 22, 2017 Author Share Posted April 22, 2017 shop2s https://pastebin.com/2gstEBVx shop2c https://pastebin.com/xsjRnRfc In shop2 thats the problem too. But still not working the buy system Link to comment
Administrators Lpsd Posted April 23, 2017 Administrators Share Posted April 23, 2017 shop2s.lua:75 Replace with this: pedCol = createColSphere (-336.8037109375, 1516.263671875, 75.359375, 3) Link to comment
Fmd01 Posted April 24, 2017 Author Share Posted April 24, 2017 I fixed that but i can't buy weapons.Not that was the problem. Link to comment
Administrators Lpsd Posted April 24, 2017 Administrators Share Posted April 24, 2017 You'd be best off adding debug outputs to the shop system code, from there you'll be able to see which parts of the code are being called/executed and which parts aren't (the reason you can't buy a weapon) Not much we can do otherwise, unless someone has experienced this exact problem before. 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