y_ini question
#1

Код:
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.
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)