25.05.2012, 01:59
I have some warnings, i believe this is why i get a error 19 on samp-server
I removed the IP and other because of hackers.
pawn Код:
#define MYSQL_HOST "Wont Show"
#define MYSQL_USER "Wont show"
#define MYSQL_PASS "Wont show"
#define MYSQL_DB "erpgserver"
pawn Код:
public MySQLConnect(sqlhost[], sqluser[], sqlpass[], sqldb[])
{
FuncLog("MySQLConnect");
print("MYSQL: Attempting to connect to server...");
new MySQL:connection;
mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB, connection, 1);
if(mysql_ping() == 0)
{
print("MYSQL: Database connection established.");
return 1;
}
else
{
print("MYSQL: Could not connect! Retrying...");
mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DB, connection, 1);
if(mysql_ping()==0)
{
return 1;
}
else
{
print("MYSQL: Could not reconnect to Database! Terminating server...");
SendRconCommand("exit");
return 0;
}
}
}
pawn Код:
WCRP.pwn(48915) : warning 213: tag mismatch
WCRP.pwn(48915) : warning 202: number of arguments does not match definition
WCRP.pwn(48924) : warning 213: tag mismatch
WCRP.pwn(48924) : warning 202: number of arguments does not match definition