19.12.2013, 23:54
Hello People,
I'm creating a server, but it don't work.
The MySQL Connection fails.. Can anyone view my problem?
I allowed all connections in my webhost etc.
Website config works but SAMP can't connect to it.. Anyone know a solution??
SKYPE: Gilian.Abels
Greetz Gilian,
I'm creating a server, but it don't work.
The MySQL Connection fails.. Can anyone view my problem?
Код:
#define SQL_HOST "149.210.128.9" #define SQL_USER "gepestword_strcm" #define SQL_PASS "(SECRET :D)" #define SQL_DB "gepestword_strcm" main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } public OnGameModeInit() { mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS); if(mysql_ping() == -1) printf("MySQL connection attempt %d failed!"); else { print("succes"); } mysql_query("CREATE TABLE IF NOT EXISTS LSRPUsers(user VARCHAR(24), password VARCHAR(40), score INT(20), money INT(20), level INT(20), vip INT(20), kma INT(20), rank INT(20), kills INT(20), deaths INT(20), muted INT(20), jailed INT(20), frozen INT(20), mutedtimes INT(20), jailedtimes INT(20), frozentimes INT(20), banned INT(20), bannedby VARCHAR(24), logins INT(20), posx INT(20), posy INT(20), posz INT(20), posa INT(20), IP VARCHAR(15) )"); mysql_debug(1); SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; }
Website config works but SAMP can't connect to it.. Anyone know a solution??
SKYPE: Gilian.Abels
Greetz Gilian,