MySQL Connecting problem.
#1

Why if i don't connect to a mysql database from a FS, and after on GM the server don't want to connect to the database?

I created a filterscript appointed "ConnectDB" ... if the fs is in 'server.cfg', the server connect on the database, if isn't it don't want to connect
Reply
#2

C'mon guys? Anyone?
Reply
#3

becose you must have your connection infomation on gm becose gamemode have to connect to db not fs
Reply
#4

@doreto, i have:
Код:
#define RAS_HOST 											"localhost"
#define RAS_USER 											"root"
#define RAS_PASS 											""
#define RAS_DB 												"samp"
And on, OnGameModeInit:
Код:
mysql_connect( RAS_HOST, RAS_USER, RAS_PASS, RAS_DB );
Reply
#5

try to make it like that

pawn Код:
mysql_connect(yourhostname,username,db,passowrd);
first put RAS_DB then RAS_PASS

and did you try to debug ---[>] mysql_debug(1); onder OnGameModeInit
Reply
#6

Quote:
Originally Posted by doreto
Посмотреть сообщение
try to make it like that

pawn Код:
mysql_connect(yourhostname,username,db,passowrd);
first put RAS_DB then RAS_PASS

and did you try to debug ---[>] mysql_debug(1); onder OnGameModeInit
Lol, this is it . Thanks man !

Rep++ for you
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)