error 035: argument type mismatch (argument 3)
#1

Hello, I get this error "error 035: argument type mismatch (argument 3)" on 5 lines in the code.

Here are the lines.

PHP код:
PlayerInfo[extraid][pCarTicket] = CMySQL_Int(PlayerName(extraid), "Accounts""Username""CarTicket");
                 
PlayerInfo[extraid][pTut] = CMySQL_Int(PlayerName(extraid), "Accounts""Username""Tutorial");
                 
PlayerInfo[extraid][pSex] = CMySQL_Int(PlayerName(extraid), "Accounts""Username""Sex");
                
PlayerInfo[extraid][pChanges] = CMySQL_Int(PlayerName(extraid), "Accounts""Username""Changes");
                
strmid(PlayerInfo[extraid][pAdmName], CMySQL_Get(PlayerName(extraid), "Accounts""Username""AdmName"), 0strlen(CMySQL_Get(PlayerName(extraid), "Accounts""Username""AdmName")), 255); 
How I can fix the errors?
Thanks.
Reply
#2

WHat MySQL Plugin you use
Reply
#3

Searching up on this I found that it's not an unusual thing for this script to be bugged.

https://sampforum.blast.hk/showthread.php?tid=369467

Upon searching more though, I found that the package you downloaded, HAS to overwrite your includes, otherwise it will error like this.


Reinstall your script, and it's accompanied files, and recompile. Although I am sure you'll simply run into more issues once you do.
Reply
#4

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Searching up on this I found that it's not an unusual thing for this script to be bugged.

https://sampforum.blast.hk/showthread.php?tid=369467

Upon searching more though, I found that the package you downloaded, HAS to overwrite your includes, otherwise it will error like this.


Reinstall your script, and it's accompanied files, and recompile. Although I am sure you'll simply run into more issues once you do.
I reinstalled the script, everything. Tried to compile it, but I have the same errors.
Reply
#5

Assuming that all of these send separate queries, this is a horrible way to use MySQL. My only advice is to rewrite it entirely with the native plugin functions instead of these wrappers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)