Test Pluggin: Noooo....
#8
Its because IsHoe is a static function not a method. So the correct code would be
if (ItemCategory.IsHoe(HeldItem.m_ItemType)) then

It seems that the error argument #1 is 'table'; 'whatever' expected often indicates calling a static function as though it was a method.
Reply
Thanks given by:


Messages In This Thread
Test Pluggin: Noooo.... - by Narroo - 02-19-2014, 04:40 AM
RE: Test Pluggin: Noooo.... - by NiLSPACE - 02-19-2014, 04:45 AM
RE: Test Pluggin: Noooo.... - by Narroo - 02-19-2014, 05:10 AM
RE: Test Pluggin: Noooo.... - by NiLSPACE - 02-19-2014, 05:16 AM
RE: Test Pluggin: Noooo.... - by xoft - 02-19-2014, 07:18 AM
RE: Test Pluggin: Noooo.... - by Narroo - 02-19-2014, 10:09 AM
RE: Test Pluggin: Noooo.... - by NiLSPACE - 02-19-2014, 07:39 AM
RE: Test Pluggin: Noooo.... - by worktycho - 02-19-2014, 10:52 AM
RE: Test Pluggin: Noooo.... - by Narroo - 02-19-2014, 12:32 PM
RE: Test Pluggin: Noooo.... - by xoft - 02-19-2014, 05:29 PM
RE: Test Pluggin: Noooo.... - by worktycho - 02-19-2014, 11:23 PM



Users browsing this thread: 5 Guest(s)