Error 35 - Argument mismatch [MySQL]
#1

Hi, I'm having trouble with this piece of code:

pawn Код:
new name[MAX_PLAYER_NAME], query[70];
    GetPlayerName(playerid, name, sizeof(name));
    format(query, sizeof(query), "SELECT * FROM Players WHERE pName = '%s'", name);
    mysql_query(query, THREAD_CONNECTINGPLAYER, playerid);

The last line is giving me the error. It says the first argument is an argument mismatch.
Reply
#2

Are you using BlueG's MySQL Plugin R6 or later?
Reply
#3

Open the include file of mysql and search for "mysql_query". See what's the first argument and change accordingly.

Note: If you use latest versions of BlueG's MySQL, the first argument should be the connection handle.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)