MySQL Connect
#1

Hey!

There's a mysql connect function under OnGameModeInit():

pawn Код:
if(mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS))
{
printf("\n[MySQL]: Succesful connect to database '%s'!\n", MYSQL_DB);
return 1;
}
printf("\n[MySQL]: [Error]: Cannot connect to database '%s'!\n", MYSQL_DB);
The problem is, when I run the gamemode without the mysql server running, it prints the 1st message, and using the functions (for example the registration) without it, so I can log in with any passwords.
How can I fix it to work correctly?

Thanks
Nonameman
Reply


Messages In This Thread
MySQL Connect - by Nonameman - 21.08.2010, 11:15
Re: MySQL Connect - by wups - 21.08.2010, 11:19
MySQL Connect - by [NoV]LaZ - 21.08.2010, 11:28
Re: MySQL Connect - by Kyosaur - 21.08.2010, 11:32
MySQL Connect - by [NoV]LaZ - 21.08.2010, 11:38
Re: MySQL Connect - by Nonameman - 21.08.2010, 12:29
Re: MySQL Connect - by WackoX - 21.08.2010, 12:33
Re: MySQL Connect - by Kirollos - 19.04.2012, 19:42

Forum Jump:


Users browsing this thread: 3 Guest(s)