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=600696)



error 035: argument type mismatch (argument 1) - AnoTek - 11.02.2016

I had 26 errors like that: error 035: argument type mismatch (argument 1)

The lines are:
Код:
  INI_WriteInt("410", vehSlots[410]);
	    INI_WriteInt("436", vehSlots[436]);
	    INI_WriteInt("496", vehSlots[496]);
	    INI_WriteInt("439", vehSlots[439]);
	    INI_WriteInt("517", vehSlots[517]);
	    INI_WriteInt("526", vehSlots[526]);
	    INI_WriteInt("589", vehSlots[589]);
	    INI_WriteInt("602", vehSlots[602]);
	    INI_WriteInt("566", vehSlots[566]);
	    INI_WriteInt("405", vehSlots[405]);
	    INI_WriteInt("426", vehSlots[426]);
	    INI_WriteInt("579", vehSlots[579]);
	    INI_WriteInt("475", vehSlots[475]);
	    INI_WriteInt("401", vehSlots[401]);
	    INI_WriteInt("546", vehSlots[546]);
	    INI_WriteInt("529", vehSlots[529]);
	    INI_WriteInt("550", vehSlots[550]);
	    INI_WriteInt("540", vehSlots[540]);
	    INI_WriteInt("467", vehSlots[467]);
	    INI_WriteInt("466", vehSlots[466]);
	    INI_WriteInt("492", vehSlots[492]);
	    INI_WriteInt("419", vehSlots[419]);
	    INI_WriteInt("495", vehSlots[495]);
	    INI_WriteInt("541", vehSlots[541]);
	    INI_WriteInt("411", vehSlots[411]);
	    INI_WriteInt("451", vehSlots[451]);
How can i solve?


Re: error 035: argument type mismatch (argument 1) - mongi - 04.04.2016

INI_WriteInt(file, "int_data", 4);


Re: error 035: argument type mismatch (argument 1) - DTV - 04.04.2016

You need to specify the file that you're trying to save to.

pawn Код:
new string[128];
format(string,sizeof(string),"/scriptfiles/*Location of file*",FileName);
new INI:File = INI_Open(string)
INI_WriteInt(File, "410", vehSlots[410]);