Mysql problem.
#1

Hello,

That's the error:

Код:
Function: mysql_connect called with incorrect parameter count.
pawn Код:
mysql_connect("localhost", "root", "CommunityProject", "");
I use this MYSQL plugin

Thank you.
Reply
#2

mysql_connect(const host[], const user[], const pass[], const db[]);

I don't think the Database(db) can be null. Read the parameters that are written in the topic.

EDIT: Else you can just remove the const db. mysql_connect(const host[], const user[], const pass[]); and use mysql_select_db(dbname);
Reply
#3

nvm, I solved the problem
Reply
#4

Quote:
Originally Posted by TH3_R3D™
Посмотреть сообщение
nvm, I solved the problem
What is the solution? This can be used as a reference for others who may experience this problem in the future.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)