Server keeps restarting, doesn't show online
#6

@sew_sumi, sorry I haven't been scripting for a while so I've forgotten a lot of things, but how can I fix that problem?

@RogueDrifter, thanks heaps for your reply! I don't think that's the problem, although let me know if you see anything wrong with this
Код:
public LoadStuff()
{
	new arrCoords[16][64];
	new strFromFile2[256];
	new File: file = fopen("stuff.ini", io_read);
	if(file)
	{
		fread(file, strFromFile2);
		split(strFromFile2, arrCoords, ',');
		Jackpot = strvalEx(arrCoords[0]);
		Tax = strvalEx(arrCoords[1]);
		TaxValue = strvalEx(arrCoords[2]);
		Security = strvalEx(arrCoords[3]);
		Kicks = strvalEx(arrCoords[5]);
		Fines = strvalEx(arrCoords[6]);
		Prisons = strvalEx(arrCoords[7]);
		Slaps = strvalEx(arrCoords[8]);
		Bans = strvalEx(arrCoords[9]);
		Jails = strvalEx(arrCoords[10]);
		Spins = strvalEx(arrCoords[11]);
		MaxPlayers = strvalEx(arrCoords[12]);
		Reports = strvalEx(arrCoords[13]);
		factionsrecentlypaid = strvalEx(arrCoords[14]);
		factionpaytimer = strvalEx(arrCoords[15]);
		fclose(file);
		if(Security == 0 || Security == 1)
		{
		}
		else
		{
		    GameModeExit();
		}
	}
	else
	{
	    GameModeExit();
	}
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)