SA-MP Forums Archive
error 035: argument type mismatch (argument 3) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 035: argument type mismatch (argument 3) (/showthread.php?tid=637064)



error 035: argument type mismatch (argument 3) - SelfiMaster - 08.07.2017

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.


Re: error 035: argument type mismatch (argument 3) - HoussemGaming - 08.07.2017

WHat MySQL Plugin you use


Re: error 035: argument type mismatch (argument 3) - Sew_Sumi - 08.07.2017

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.


Re: error 035: argument type mismatch (argument 3) - SelfiMaster - 08.07.2017

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.


Re: error 035: argument type mismatch (argument 3) - Vince - 08.07.2017

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.