MySQL Connecting failure
#1

Hi...
I'm using KingJ hosts and installed Stricken Kid's Mysql Plugin 2.0 with it...
I uploaded my script and when i run it now it doesn't connect to mysql and says:
"Function: mysql_connect called with incorrect parameter count."
(I'm using an external DB)...

pawn Код:
new MySQL:connection = mysql_init(LOG_ONLY_ERRORS, 1);
mysql_connect(SQL_HOST, SQL_USER, SQL_PASS, SQL_DB, connection, 1);
what's wrong?

(the plugin loads though)
Reply
#2

Try

pawn Код:
mysql_connect(SQL_HOST, SQL_USER, SQL_DATABASE, SQL_PASSWORD);
Reply
#3

wrong parameters -.-
Reply
#4

noone else?
Reply
#5

nvm fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)