![]() |
Small problem - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Small problem (/showthread.php?tid=593) |
Small problem - Matt - 06-01-2007 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. - Xlithan - 06-01-2007 Check what's going on in FindOpenInvSlot - Obsidian - 06-01-2007 is your inventory full? that would return a zero... or maybe it's saying that slot 0 is open? - William - 06-01-2007 Moved to Advanced Questions. - Matt - 06-01-2007 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. |