My Server Problem
#7

is this correct?

Code:
LoadThePay()
{

	new sz_FacPayStr[128], File: i_FileHandle, arrayIndex;

	#define PAY_FILE "factionpay.cfg"

	if(!fexist(PAY_FILE)) return 1; // Why create a file when you're trying to load?

	i_FileHandle = fopen(PAY_FILE, io_read);
	while (arrayIndex < sizeof(FactionPay))
	{
		fread(i_FileHandle, sz_FacPayStr);
		sscanf(sz_FacPayStr, "p<|>iiiiiii",
			FactionPay[arrayIndex][0],
			FactionPay[arrayIndex][1],
			FactionPay[arrayIndex][2],
			FactionPay[arrayIndex][3],
			FactionPay[arrayIndex][4],
			FactionPay[arrayIndex][5],
			FactionPay[arrayIndex][6]);
		arrayIndex++;
	}
	return fclose(i_FileHandle);
}
Reply


Messages In This Thread
SSCANF Warning: Format specifier does not match parameter Count. - by RainW - 18.05.2020, 13:49
Re: My Server Problem - by Adamoneoone - 18.05.2020, 13:56
Re: My Server Problem - by jasperschellekens - 18.05.2020, 13:57
Re: My Server Problem - by RainW - 18.05.2020, 14:07
Re: My Server Problem - by GameOvr - 18.05.2020, 14:15
Re: My Server Problem - by RainW - 18.05.2020, 14:49
Re: My Server Problem - by RainW - 18.05.2020, 14:57
Re: My Server Problem - by XStormiest - 18.05.2020, 17:52
Re: My Server Problem - by RainW - 19.05.2020, 07:44
Re: My Server Problem - by RainW - 19.05.2020, 07:46

Forum Jump:


Users browsing this thread: 1 Guest(s)