Having problems
#4
How doesn't it work, is there an error message when the plugin loads, when this code executes, or no error message but no visible result?

I'm guessing Pickups is the cItems variable received in the OnPlayerBrokenBlock() hook, you really should check its size before querying items using the Get() function - if there's only one kind of pickup, the code will fail on the "item2 = i2.m_ItemType" line, because i2 is nil. And if there's no pickup at all, it will fail one line above that.
Reply
Thanks given by:


Messages In This Thread
Having problems - by tonibm19 - 12-31-2013, 03:21 AM
RE: Having problems - by NiLSPACE - 12-31-2013, 03:24 AM
RE: Having problems - by tonibm19 - 12-31-2013, 03:26 AM
RE: Having problems - by xoft - 12-31-2013, 03:28 AM
RE: Having problems - by tonibm19 - 12-31-2013, 04:17 AM
RE: Having problems - by NiLSPACE - 12-31-2013, 04:27 AM
RE: Having problems - by tonibm19 - 12-31-2013, 04:36 AM
RE: Having problems - by NiLSPACE - 12-31-2013, 04:38 AM
RE: Having problems - by tonibm19 - 12-31-2013, 04:42 AM



Users browsing this thread: 1 Guest(s)