#define db_init
// db_init()
// Initializes the database system.
/*------------------------------------------------- ------------------\
| |
| GM Database System v10.3 |
| |
| AUTHOR: Benoit Rouleau |
| RELEASE DATE: July 28, 2011 |
| EMAIL: benoitr007@hotmail.com |
| WEBSITE: http://www.benetonsoftware.com |
| |
| If you find a bug or have a suggestion, please contact |
| me. I appreciate all kinds of feedback.Thanks and enjoy! |
| |
\--------------------------------------------- ----------------------*/
// initialize global variables
global.db_memory_size = 0;
global.db_memory[0] = 0;
// create the tables list
global.db_list_tables = ds_list_create();
// send a success message to the log
db_log("System initialized (v" + DB_VERSION + ")", DB_LOG_NORMAL);
#define db_log
// db_log(message, priority)
// Internal function used to send debug messages (if debug mode is ON) or error messages.
// Priority is either DB_LOG_NORMAL, DB_LOG_WARNING, or DB_LOG_ERROR (also shows a popup).
var time, str;
// send a debug message if we're in debug mode
if (debug_mode == 1)
{
time = date_current_time();
str = "[" + date_time_string(time) + "] GMDB - ";
if (argument[1] == DB_LOG_WARNING)
{
str += "WARNING: ";
}
if (argument[1] == DB_LOG_ERROR)
{
str += "ERROR: ";
}
str += argument0;
show_debug_message(str);
}
// if priority is set to error, show an error message
if (argument[1] == DB_LOG_ERROR)
{
show_error("GMDB - " + argument0, 0);
}
in 1 script and it should be 2 scripts :S
Another Reason to add again the old (gm8) import/export resources and scripts











