i edited the database connection code, simplified all of the AutoExecConfig functions into a single line, and other small stuff. I tracked down the include file needed for compile (see attached files)
- create a database where you want the tables for this plugin to be stored (or use an existing one)
- make an entry in databases.cfg for "giveaway" and fill out the info, like so:
Code:
"giveaway"
{
"driver" "mysql"
"host" "myhost.com"
"database" "database_giveaway"
"user" "username"
"pass" "password"
"port" "3306"
}
if you manually load the plugin via console, you should see a message print to console saying "[GIVEAWAY] Connection successful"
Youll also probably see an error about missing table(s)
To 'fix' this, run the command
sm_giveaway_create which willmake the two tables you need in your database
should be good to go