MySQL
#3

Код:
connectionHandle = mysql_connect("localhost", "root", "samp", "");
mysql_debug(1);
INI_ParseFile(SPATH, "LoadServerData", .bExtra = false);
I can't give you full code, because there are maps

and exit, but forget about Y_INI code, this is for server variables, I now speak about player.

Код:
public OnGameModeExit()
{
	mysql_close(0);

	new INI:File = INI_Open(SPATH);
	INI_SetTag(File, "info");
	INI_WriteInt(File, "Smecarska_marsuta_1", ServerInfo[sSM1]);
	INI_WriteInt(File, "Smecarska_marsuta_2", ServerInfo[sSM2]);
	INI_WriteInt(File, "Smecarska_marsuta_3", ServerInfo[sSM3]);
	INI_WriteInt(File, "Smecarska_marsuta_4", ServerInfo[sSM4]);
	INI_WriteInt(File, "Cijena_Gradske_Stanice", ServerInfo[sCijenaGradskeStanice]);
    INI_WriteInt(File, "Cijena_Prigradske_Stanice", ServerInfo[sCijenaPrigradskeStanice]);
	INI_WriteInt(File, "Gradska_Autobusna_ruta_1", ServerInfo[sGradskaARuta1]);
	INI_WriteInt(File, "Gradska_Autobusna_ruta_2", ServerInfo[sGradskaARuta2]);
	INI_WriteInt(File, "Prigradska_Autobusna_ruta", ServerInfo[sPrigradskaARuta]);
	INI_Close(File);
        return 1;
}
Reply


Messages In This Thread
MySQL - by Vectro64 - 11.09.2012, 09:31
Re: MySQL - by Roach_ - 11.09.2012, 09:34
Re: MySQL - by Vectro64 - 11.09.2012, 09:46
Re: MySQL - by clarencecuzz - 11.09.2012, 10:03
Re: MySQL - by Vectro64 - 11.09.2012, 10:15
Re: MySQL - by Vectro64 - 11.09.2012, 16:49
Re: MySQL - by doreto - 11.09.2012, 16:56
Re: MySQL - by Vectro64 - 11.09.2012, 17:08
Re: MySQL - by Vectro64 - 13.09.2012, 16:06
Re: MySQL - by Vectro64 - 13.09.2012, 17:46

Forum Jump:


Users browsing this thread: 1 Guest(s)