11.11.2014, 00:46
at the top of the script:
and about the sql connect:
If the above sql_connect didn't work or made an error then try:
pawn Код:
#include <foreach>
pawn Код:
SQL_Connect() {
g_iHandle = mysql_connect(SQL_HOSTNAME, SQL_USERNAME, SQL_DATABASE, SQL_PASSWORD);
if (mysql_errno(g_iHandle ) == 0) {
printf("[SQL] Connection to \"%s\" failed! Please check the connection settings...\a", SQL_HOSTNAME);
}
else {
printf("[SQL] Connection to \"%s\" passed!", SQL_HOSTNAME);
}
}
pawn Код:
SQL_Connect() {
g_iHandle = mysql_connect(SQL_HOSTNAME, SQL_USERNAME, SQL_DATABASE, SQL_PASSWORD);
if (mysql_connection(g_iHandle ) == 0) {
printf("[SQL] Connection to \"%s\" failed! Please check the connection settings...\a", SQL_HOSTNAME);
}
else {
printf("[SQL] Connection to \"%s\" passed!", SQL_HOSTNAME);
}
}