Pomoc?

Započeo Luka_Scripting, Maj 24, 2020, 14:36:30 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Ako moze neko da mi ovo sredi da mogu da ubacim u host
Dio skripte: [pawn]
#define kucni

#if defined kucni
    #define MYSQL_HOST "127.0.0.1"
   #define MYSQL_USER "eUser21499"
   #define MYSQL_PASS "55nike18504kurac"
   #define MYSQL_DB "vibegaming"
#else
    #define MYSQL_HOST "127.0.0.1"
   #define MYSQL_USER "eUser21499"
   #define MYSQL_PASS "55nike18504kurac"
   #define MYSQL_DB "vibegaming"
#endif

new _dbConnector, sql_str[ 128 ];

[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike

Pa ako ces startovati kucni server MYSQL_USER ti treba biti "root", MYSQL_PASS "" - prazno samo navodnici, i mysql_db ostavi tako, a ako zelis da pokrenes server na hostingu to [pawn]
#define kucni[/pawn]
stavi kod komentari i kompajluj mod
[pawn]
//#define kucni
[/pawn]

Citat: //>> Vedran poslato Maj 24, 2020, 14:38:47 POSLE PODNE
Pa ako ces startovati kucni server MYSQL_USER ti treba biti "root", MYSQL_PASS "" - prazno samo navodnici, i mysql_db ostavi tako, a ako zelis da pokrenes server na hostingu to [pawn]
#define kucni[/pawn]
stavi kod komentari i kompajluj mod
[pawn]
//#define kucni
[/pawn]
na hostingu ocu
ali neradi mi kad ga ubacim

neznam da neznaci nesto u mysql_log
[pawn][10:55:10] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061)
[10:55:10] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[10:55:10] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[10:55:10] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[10:55:11] [DEBUG] mysql_tquery - connection: 1, query: "SELECT bussines.*, IFNULL(users.p_name, 'Drzava') AS `p_name` FR", callback: "OnBussinesLoad", format: "(null)"
[10:55:11] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `buildings`", callback: "OnBuildingsLoad", format: "(null)"
[10:55:11] [DEBUG] mysql_pquery - connection: 1, query: "SELECT hotels.*, IFNULL(users.p_name, 'Drzava') AS `p_name` FROM", callback: "OnHotelsLoad", format: "(null)"
[10:55:11] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `vehicle_salon`", callback: "OnVehSalonsLoad", format: "(null)"
[10:55:11] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `gates`", callback: "OnGatesLoad", format: "(null)"
[10:55:11] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `actors`", callback: "OnActorsLoad", format: "(null)"
[10:55:11] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `plate`", callback: "OnPlateLoad", format: "(null)"
[10:55:11] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `containers`", callback: "OnContainersLoad", format: "(null)"
[10:55:11] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `platforme`", callback: "OnPlatformsLoad", format: "(null)"
[10:55:11] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `farme`", callback: "OnFarmeLoad", format: "(null)"
[10:55:11] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `atms`", callback: "OnATMsLoad", format: "(null)"
[10:55:11] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `gps`", callback: "OnGpsLocationsLoad", format: "(null)"
[10:55:14] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061)
[10:55:14] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061)
[10:56:07] [DEBUG] mysql_format - connection: 1, len: 128, format: "SELECT `user_id`, `password`, `registered` FROM `users` WHERE `p_name` = '%e' LIMIT 1"
[10:56:07] [DEBUG] mysql_tquery - connection: 1, query: "SELECT `user_id`, `password`, `registered` FROM `users` WHERE `p", callback: "CheckPlayerAccount", format: "i"
[12:47:21] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061)
[12:47:21] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[12:47:21] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[12:47:21] [DEBUG] CMySQLConnection::Connect - establishing connection to database...
[12:47:22] [DEBUG] mysql_tquery - connection: 1, query: "SELECT bussines.*, IFNULL(users.p_name, 'Drzava') AS `p_name` FR", callback: "OnBussinesLoad", format: "(null)"
[12:47:22] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `buildings`", callback: "OnBuildingsLoad", format: "(null)"
[12:47:22] [DEBUG] mysql_pquery - connection: 1, query: "SELECT hotels.*, IFNULL(users.p_name, 'Drzava') AS `p_name` FROM", callback: "OnHotelsLoad", format: "(null)"
[12:47:22] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `vehicle_salon`", callback: "OnVehSalonsLoad", format: "(null)"
[12:47:22] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `gates`", callback: "OnGatesLoad", format: "(null)"
[12:47:22] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `actors`", callback: "OnActorsLoad", format: "(null)"
[12:47:22] [DEBUG] mysql_tquery - connection: 1, query: "SELECT * FROM `plate`", callback: "OnPlateLoad", format: "(null)"
[12:47:23] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `containers`", callback: "OnContainersLoad", format: "(null)"
[12:47:23] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `platforme`", callback: "OnPlatformsLoad", format: "(null)"
[12:47:23] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `farme`", callback: "OnFarmeLoad", format: "(null)"
[12:47:23] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `atms`", callback: "OnATMsLoad", format: "(null)"
[12:47:23] [DEBUG] mysql_pquery - connection: 1, query: "SELECT * FROM `gps`", callback: "OnGpsLocationsLoad", format: "(null)"
[12:47:25] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061)
[12:47:25] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061)
[12:47:25] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061)
[12:47:53] [DEBUG] mysql_format - connection: 1, len: 128, format: "SELECT `user_id`, `password`, `registered` FROM `users` WHERE `p_name` = '%e' LIMIT 1"
[12:47:53] [DEBUG] mysql_tquery - connection: 1, query: "SELECT `user_id`, `password`, `registered` FROM `users` WHERE `p", callback: "CheckPlayerAccount", format: "i"
[/pawn]