Jump to content

DayZ Problems.


Fmd01

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...