[MySQL] argument type mismatch (argument 1)
#1

After updating my MySQL to the latest version which is R39-5. After compiling my gamemode, it shows more than 20 errors [argument type mismatch (argument 1)]

Here are the samples of the lines with errors
Quote:

mysql_query( gsQuery, THREAD_CHECK_ACCOUNT_USERNAME, playerid );
mysql_query( gsQuery, THREAD_CHECK_ACHEIVEMENTS, playerid );
mysql_query( gsQuery, THREAD_PLAYER_CheckLogin, playerid );
mysql_query( gsQuery, THREAD_CHECK_BANS_LIST, playerid );

Can you please give my an idea how to fix these errors?

Thanks!
Reply
#2

That's because you're not using any defined usage of the MySQL functions.

What version are you coming from? R5?
Reply
#3

Quote:
Originally Posted by Jack_SMalls
Посмотреть сообщение
That's because you're not using any defined usage of the MySQL functions.

What version are you coming from? R5?
YES! My gamemode is using R5. And actually i'm also trying to apply this housing system fs that I've downloaded which is using the latest version of MySQL Yet Another House System If I use the latest version then there's no problem with the compiling but in my gamemode it has a lot. So I really don't know now what to do.

I'm not sure which MySQL version can handle both R5 and the latest version R39.
Reply
#4

You'd have to work out converting from R5 to R39. There has been quite a lot of changes since then, as far as writing queries goes.
Reply
#5

Yeah, I guess I have no choice. Plus, the errors are only around 20+ so it will not take a lot of time lol.

Edit: someone please help me convert this to R39 format?

PHP код:
stock CheckPlayerAccountplayerid )
{
    
formatgsQuery256"SELECT `IP` FROM `accounts` WHERE `Name` = '%s'"PlayerNameplayerid ) );
    
mysql_querygsQueryTHREAD_CHECK_ACCOUNT_USERNAMEplayerid );

Reply


Forum Jump:


Users browsing this thread: