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



argument type mismatch (argument 3) - Lirbo - 04.07.2014

pawn Код:
if(dialogid == 4){
DOF2_SetInt(pFile(playerid),"Bank",inputtext);}
Error:
argument type mismatch (argument 3)


Re: argument type mismatch (argument 3) - DarkZeroX - 04.07.2014

PHP код:
if(dialogid == 4)
{
     
DOF2_SetInt(pFile(playerid),"Bank",strval(inputtext));



we converted "inputtext" because inputtext base is a string, the view that the bank is a value we use strval


Re: argument type mismatch (argument 3) - Lirbo - 04.07.2014

Thanks <3