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=548674)
error 035: argument type mismatch (argument 3) -
SandKing94 - 01.12.2014
<removed>
Re: error 035: argument type mismatch (argument 3) -
UltraScripter - 01.12.2014
pawn Код:
dini_Set(file, "Origin", (inputtext))
i think that strval is no need hare
Re: error 035: argument type mismatch (argument 3) -
CutX - 01.12.2014
//EDIT:the guy above me is right, no conversion needed here.
3rd param is a string, all 3 params are strings here
the compiler cannot convert the
passed-in argument to the required type.
(im talking about "strval(inputtext)")
try this:
pawn Код:
new val = strval(inputtext);
//and then
dini_Set(file, "Origin", val);
if that didn't work, tell us how your "inputtext" usually looks like
Re: error 035: argument type mismatch (argument 3) -
SandKing94 - 01.12.2014
It works now, thanks