SA-MP Forums Archive
INI_WriteString - 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: INI_WriteString (/showthread.php?tid=395289)



INI_WriteString - Vegas. - 25.11.2012

Код:
INI_WriteString(File, "Note1", 0);
				INI_WriteInt(File, "Note1s", 0);
				INI_WriteString(File, "Note2", 0);
				INI_WriteInt(File, "Note2s", 0);
				INI_WriteString(File, "Note3", 0);
				INI_WriteInt(File, "Note3s", 0);
				INI_WriteString(File, "Note4", 0);
				INI_WriteInt(File, "Note4s", 0);
				INI_WriteString(File, "Note5", 0);
				INI_WriteInt(File, "Note5s", 0);
Код:
C:\Documents and Settings\Vegas\Desktop\UB\gamemodes\gm.pwn(22729) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Vegas\Desktop\UB\gamemodes\gm.pwn(22731) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Vegas\Desktop\UB\gamemodes\gm.pwn(22733) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Vegas\Desktop\UB\gamemodes\gm.pwn(22735) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Vegas\Desktop\UB\gamemodes\gm.pwn(22737) : error 035: argument type mismatch (argument 3)
What should I do?


Re: INI_WriteString - ReneG - 25.11.2012

Fix it by actually writing a string, 0 is not a string, it's a number.


Re: INI_WriteString - Vegas. - 25.11.2012

I writed it like this INI_WriteString(File, "Note5", ""); and I don't have more error