I have this task to connect to the sql database
Code:
set_task(0.1,"sql_init")
and then I am using public client_authorized(id){ to execute code and read data from the database.
The problem that I am having is that users that connect right away on a map change give an error like this
Code:
L 04/25/2005 - 20:07:20: [AMXX] Run time error 10 (native) (plugin "frequentfraggerprogram.amxx") - debug not enabled.
L 04/25/2005 - 20:07:20: [MYSQL] Invalid database handle -1
L 04/25/2005 - 20:07:20: [AMXX] To enable debug mode, add " debug" after the plugin name in plugins.ini (without quotes).
L 04/25/2005 - 20:07:20: [AMXX] Run time error 10 (native) (plugin "frequentfraggerprogram.amxx") - debug not enabled.
L 04/25/2005 - 20:07:20: [MYSQL] Invalid result handle -6
How would I delay them connecting until the database is connected so that the plugin can read their data?