I can't seem to figure out why this is happening upon the plugin loading:
Quote:
Originally Posted by Console Output
L 11/04/2013 - 12:56:01: [SM] Native "SQL_EscapeString" reported: Invalid database Handle 0 (error: 4)
L 11/04/2013 - 12:56:01: [SM] Displaying call stack trace for plugin "reporttoforum.smx":
L 11/04/2013 - 12:56:01: [SM] [0] Line 1577, E:\SourceMod Plugins\Public\Report To Forums\scripting\reporttoforum.sp: arsePlaye rName()
L 11/04/2013 - 12:56:01: [SM] [1] Line 1643, E:\SourceMod Plugins\Public\Report To Forums\scripting\reporttoforum.sp::AddPlayers ToMenu()
L 11/04/2013 - 12:56:01: [SM] [2] Line 735, E:\SourceMod Plugins\Public\Report To Forums\scripting\reporttoforum.sp: isplayTar getSelectionMenu()
L 11/04/2013 - 12:56:01: [SM] [3] Line 722, E:\SourceMod Plugins\Public\Report To Forums\scripting\reporttoforum.sp::Command_SM Report()
|
Database.cfg entry:
Code:
"rtfsettings_mybb"
{
"driver" "mysql"
"host" "REDACTED"
"database" "REDACTED"
"user" "REDACTED"
"pass" "REDACTED"
"port" "REDACTED"
}
We are using MyBB as our forum software of choice.
rtfsettings.cfg:
Code:
Which board you use? Visit https://bitbucket.org/norcalbots/report-to-forums/wiki/Supported%20Forums
rtf_forum_software_id 2
//Table Prefix
rtf_table_prefix "REDACTED"
//Forum ID to the specific forum you want the reports sent to.
rtf_forum_id 21
//Userid for the Reporter User.
rtf_reporter_id 137
//Username for the reporter.
rtf_reporter_username "TA_PlayerReporter"
//E-Mail address for the reporter.
rtf_reporter_email "[email protected]"
//Title to the target menu.
rtf_targetmenu_title "Select a Player:"
//Title to the main category menu.
rtf_mainmenu_title "Select a Category:"
//Title to the reason selection menu.
rtf_submenu_title "Select a Reason:"
//1 = Name - Reason
//2 = SteamID - Reason
//3 = IP - Reason
rtf_title_mode 1
//Time Difference between the webserver and the gameserver. This is in seconds. 0 = none 60 = 60seconds/1min
rtf_vps_timediff 0
//Allow users to create custom reports using sm_report <name|steamid|ip> <reason>.
rtf_allow_custom_reports 1
//Prefix added to the beginning of the plugin generated say messages.
rtf_prefix "Reporter"
//Time in seconds between reports (per user).
rtf_cmd_cooldown 30
//Time in seconds to display the advertisement. 0 turns off the advertisement.
rtf_advertisement_frequency 180
//Use updater to keep the plugin uptodate.
rtf_auto_update 1
//Turn on and off dev mode (Allowing targeting of self only for now)
rtf_dev_toggle 0
//Enables this if you are having trouble.
rtf_debug 1
//Reporter Heading
rtf_reporter_title "Reporting Party"
//Reported Heading
rtf_reported_title "Offending Party"
//Server Info Heading
rtf_serverinfo_title "Server Info"
//Title of the Server name under 'Server Info'
rtf_serverinfo_name "Name"
//Title of the Server ip under 'Server Info'
rtf_serverinfo_ip "IP"
//Title of the Map under 'Server Info'
rtf_serverinfo_map "Map"
//Title of the Server name under 'Offending Party'
rtf_offending_name "Name"
//Title of the Server authid under 'Offending Party'
rtf_offending_authid "SteamID"
//Title of the Server ip under 'Offending Party'
rtf_offending_ip "IP"
//Title of the Server category under 'Offending Party'
rtf_offending_cat "Category"
//Title of the Server reason under 'Offending Party'
rtf_offending_reason "Reason"
//Title of the Server description under 'Offending Party'
rtf_offending_desc "Description"
//Title of the Server name under 'Reporting Party'
rtf_reporting_name "Name"
//Title of the Server authid under 'Reporting Party'
rtf_reporting_authid "SteamID"
//Title of the Server ip under 'Reporting Party'
rtf_reporting_ip "IP"
//Branding at bottom of a post.
rtf_branding "Post auto generated with \"Report to Forums\" by =NcB= SavSin"
//Alert in game of the player that was reported and the reason.
rtf_admin_alert 1
//Block posts to the forum if there is an admin in game.
rtf_admin_nopost 0
__________________