MySQL, R41-3, wont call in the callback.
#1

Simply enough, it doesn't select what I order it to.

PHP код:
            mysql_log(ALL);
            
mysql_connect_file();
            
mysql_tquery(MYSQL_DEFAULT_HANDLE"SELECT * FROM vehicles""OnQueryLoad_Vehicles"""0); 
PHP код:
        forward public OnQueryLoad_Vehicles();
        public 
OnQueryLoad_Vehicles() {
            print(
"[vehicles]"); 

Код:
Filterscripts
---------------
  Loaded 0 filterscripts.

[LAUNCH] Loading all adresses..
[addresses] spawning (Test adress)
[LAUNCH] Loaded all adresses.
[LAUNCH] Loading all maps..
[LAUNCH] Loaded all maps.
[LAUNCH] Creating all global textdraws.
[LAUNCH] Finished the task.

[LAUNCH] Setting game settings..
[LAUNCH] Finished the task.
[LAUNCH] Spawning all stores.
[LAUNCH] Finished spawning stores.
[LAUNCH] Spawning all Ammo-Nations.
[LAUNCH] Finished spawning Ammo-Nations.
[LAUNCH] Spawning all clothes stores.
[LAUNCH] Finished spawning clothes stores.
[LAUNCH] Spawning objects..
[LAUNCH] Finished the task.
Number of vehicle models: 0
Reply
#2

Managed to gather this from loggings:
Код:
[19:02:24] [INFO] changed log level from 'warning, error' to 'debug, info, warning, error'
[19:02:24] [DEBUG] mysql_connect_file("mysql.ini")
[19:02:24] [DEBUG] CHandleManager::CreateFromFile(this=0x746508, file_path='mysql.ini')
[19:02:24] [INFO] Options instance with id '1' successfully created.
[19:02:24] [ERROR] mysql_connect_file: handle error: syntax error in connection file (line: "password	=     ")
[19:02:24] [DEBUG] mysql_tquery(1, "SELECT * FROM vehicles", "OnQueryLoad_Vehicles", "")
[19:02:24] [ERROR] mysql_tquery: invalid connection handle '1'
[19:02:24] [DEBUG] mysql_tquery: return value: '0'

Edittttt; lemme try setting a password and try again.. my bad
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)