SA-MP Forums Archive
error 035: argument type mismatch (argument 1) - 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 1) (/showthread.php?tid=545585)



error 035: argument type mismatch (argument 1) - Lunixx - 09.11.2014

pawn Код:
C:\Users\Darlequinn\Downloads\samp03z_svr_R1_win32\gamemodes\HSRP.pwn(3416) : warning 235: public function lacks forward declaration (symbol "Audio_OnSetPack")
C:\Users\Darlequinn\Downloads\samp03z_svr_R1_win32\gamemodes\HSRP.pwn(3469) : error 035: argument type mismatch (argument 1)
C:\Users\Darlequinn\Downloads\samp03z_svr_R1_win32\gamemodes\HSRP.pwn(3501) : error 035: argument type mismatch (argument 1)
C:\Users\Darlequinn\Downloads\samp03z_svr_R1_win32\gamemodes\HSRP.pwn(3479) : warning 203: symbol is never used: "seek"
C:\Users\Darlequinn\Downloads\samp03z_svr_R1_win32\gamemodes\HSRP.pwn(3531) : error 035: argument type mismatch (argument 1)
C:\Users\Darlequinn\Downloads\samp03z_svr_R1_win32\gamemodes\HSRP.pwn(3510) : warning 203: symbol is never used: "seek"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Line 3469
pawn Код:
Audio_OnSetPack(playerid, localhandle, seek);
Line 3501
pawn Код:
Audio_OnSetPack(i, localhandle, seek);
Line 3531
pawn Код:
Audio_OnSetPack(i, localhandle, seek);



Re: error 035: argument type mismatch (argument 1) - Eth - 09.11.2014

I don't know what is the meaning of Audio_OnSetPack but what I know about this error is that You made extra thing example:
pawn Код:
SendClientMessage(playerid,-1,"Hi",hi);//the hi will cause that error.
So I think you can try something like:
pawn Код:
Audio_OnSetPack(i, localhandle);



Re: error 035: argument type mismatch (argument 1) - Quickie - 09.11.2014

remove the public or @ on Audio_OnSetPack(playerid, localhandle, seek) if its a function

show more lines ranging 10 or simply the whole block that uses that function