16.06.2016, 15:12
Hi guys i use this plugin : https://sampforum.blast.hk/showthread.php?tid=56564
i have this :
global variable
new handle
#define HOST "127.0.0.1"
#define USER "root"
#define DATABASE "example"
#define PASSWORD ""
ongamemodeinit()
{
handle=mysql_connect(HOST, USER, DATABASE, PASSWORD);
printf("handle %d",handle);
}
the handle is always 1,
if i turn on or off the mysql server or change the name of database with one doesn't exist the handle is 1. Why?
i have this :
global variable
new handle
#define HOST "127.0.0.1"
#define USER "root"
#define DATABASE "example"
#define PASSWORD ""
ongamemodeinit()
{
handle=mysql_connect(HOST, USER, DATABASE, PASSWORD);
printf("handle %d",handle);
}
the handle is always 1,
if i turn on or off the mysql server or change the name of database with one doesn't exist the handle is 1. Why?