Pivity

Need help with an error

Last read Never
#1

This is in Blue's Unboxing 3.0

The error is:

[ERROR] addons/blues-unboxing-3/lua/bu3_config.lua:89: attempt to index local 'ply' (a nil value)
 1. GetAmount - addons/blues-unboxing-3/lua/bu3_config.lua:89
  2. DisplayStoreItems - addons/blues-unboxing-3/lua/bu3/pages/shop.lua:84
  3. Load - addons/blues-unboxing-3/lua/bu3/pages/shop.lua:264
   4. LoadPage - addons/blues-unboxing-3/lua/bu3/cl_interface.lua:1131
   5. onClick - addons/blues-unboxing-3/lua/bu3/cl_interface.lua:1092
    6. DoClick - addons/blues-unboxing-3/lua/bu3/cl_interface.lua:1042
    7. unknown - lua/vgui/dlabel.lua:232

The involved areas are: config (last lines are 88-90)


BU3.Config.CanAfford = function(ply, amount)
return ply:GetMoney() >= amount
end

BU3.Config.AddMoney = function(ply, amount)
return ply:GiveMoney(amount)
end

BU3.Config.TakeMoney = function(ply, amount)
return ply:TakeMoney(amount)
end

BU3.Config.GetAmount = function(ply)
return ply:GetMoney()
end

There's also Shop.lua which gives the error when opening the shop.


if BU3.Config.Currency == "custom" then
money = BU3.Config.GetAmount(ply)
end



I know I'm missing something bone-headed here. Thanks for the help.

Dumb x 1
#2

Did you considering sending in a support ticket?

Agree x 2Congratulations x 1
#3

Yes.

Optimistic x 1
#4

Since "The Commander" feels it's a dumb issue, then maybe he can solve it for the other developer. I hope so.

Dumb x 2Agree x 1
#5

Well, now that you have considered opening a ticket, maybe you should open a ticket? We can't help you regardless as the information you gave us was useless.

Agree x 1
#6

Honestly I had a hard time even understanding what they were trying to say.

I did submit a ticket.

What do you need to know?

Dumb x 2
#7

Unfortunately, I won't be able to help, and I don't think anyone else would either, except for the author of the script. All you can do is wait for the author to respond.

Agree x 2
#8

Thanks for the response anyway.

#9

Don't worry he's the resident troll, he rates everything dumb. Hope you get it fixed :)

Agree x 1Disagree x 1
#10

So what's the deal with the ticket? Did he not respond? You don't just submit one and instantly put your problem here too.

Agree x 1
#11

blues script support is in the discord


https://discord.gg/U8aERRD

Winner x 1
#12

I guess it moved. Thanks very much for the link.

Late x 1
Users viewing this thread
Nobody