Oh man, that's funny. I doubt even a paid modification would manage 15 minute support.
Looks like he just forgot to use the tableprefix when initially installing (and also uninstalling) the database table. A simple edit should fix it.
Note: It's probably best to uninstall before you make this change, then re-install the product again, otherwise the old db table probably won't be removed.
Open the product and find:
Code:
<codes>
<code version="1.0.0">
<installcode><![CDATA[$db->reporterror = false;
$db->query("CREATE TABLE `jlottery` (
`ticket` int(8) NOT NULL AUTO_INCREMENT,
`userid` varchar(500) NOT NULL,
`username` varchar(500) NOT NULL,
`email` varchar(500) NOT NULL,
`usertitle` varchar(500) NOT NULL,
`time` int(10) NOT NULL,
`day` int(2) NOT NULL,
`winner` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`ticket`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1");
$db->reporterror = true;]]></installcode>
<uninstallcode><![CDATA[$db->reporterror = false;
$db->query("DROP TABLE `jlottery`");
$db->reporterror = true;]]></uninstallcode>
</code>
</codes>
Replace with:
Code:
<codes>
<code version="1.0.0">
<installcode><![CDATA[$db->reporterror = false;
$db->query("CREATE TABLE " . TABLE_PREFIX . "jlottery (
ticket int(8) NOT NULL AUTO_INCREMENT,
userid varchar(500) NOT NULL,
username varchar(500) NOT NULL,
email varchar(500) NOT NULL,
usertitle varchar(500) NOT NULL,
time int(10) NOT NULL,
day int(2) NOT NULL,
winner int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (ticket)
) ENGINE=MyISAM DEFAULT CHARSET=latin1");
$db->reporterror = true;]]></installcode>
<uninstallcode><![CDATA[$db->reporterror = false;
$db->query("DROP TABLE " . TABLE_PREFIX . "jlottery");
$db->reporterror = true;]]></uninstallcode>
</code>
</codes>