Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small problem
#1
In the traderequest packet, is this line:

x = FindOpenInvSlot(index, Shop(i).TradeItem(n).GetItem)

i = 1
n = 1

Yet,

x = 0

Any idea why this is happening? With x = 0 I can't purchase anything from the shop.
Reply
#2
Check what's going on in FindOpenInvSlot
Reply
#3
is your inventory full? that would return a zero...

or maybe it's saying that slot 0 is open?
Reply
#4
Moved to Advanced Questions.
Reply
#5
I posted it in the section I did cause I didn't really consider it noob or advanced. Oh well.

It turns out, with my new shop system, where you can buy, sell, and trade, when I was trying to buy, it was checking the trade, which had no item in it. So I just added in a check for buy and it works fine now. ^_^

Thanks to Spoon for helping me out.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)