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



y_ini question - Vegas. - 02.06.2013

Код:
stock SaveServerInfo()
{
	new INI:File = INI_Open("podatci/server.ini");
        INI_SetTag(File, "SERVER");
	INI_WriteString(File, "Ime", ServerVar[sIme]);
	INI_WriteString(File, "Mod", ServerVar[sMod]);
	INI_WriteString(File, "Web", ServerVar[sWeb]);
	INI_WriteString(File, "Mapa", ServerVar[sMapa]);
	INI_WriteString(File, "Anticheat", ServerVar[sAnticheat]);
	INI_Close(File);
	return 1;
}
Код:
main()
{
	INI_Load("podatci/server.ini");
	return 1;
}
The question is, how I need to make a direction?
Код:
INI:podatci/server[SERVER](name[], value[])
{
printf("%s = %s", name, value);
printf("====");
}
When I do like this, this errors appear.
Код:
C:\Documents and Settings\Neno\Desktop\mod\gamemodes\xasd.pwn(43) : error 001: expected token: "(", but found "/"
C:\Documents and Settings\Neno\Desktop\mod\gamemodes\xasd.pwn(43) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\Neno\Desktop\mod\gamemodes\xasd.pwn(43) : error 010: invalid function or declaration
C:\Documents and Settings\Neno\Desktop\mod\gamemodes\xasd.pwn(43) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: y_ini question - Vegas. - 03.06.2013

It' doesn't print..
Код:
INI:server[SERVER](name[], value[])
{
printf("%s = %s", name, value);
printf("====");
}