21.08.2010, 11:15
Hey!
There's a mysql connect function under OnGameModeInit():
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
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);
How can I fix it to work correctly?
Thanks
Nonameman