Y_INI help
#1

that function check if playername INI file exists in scriptfiles/users.
Warning of tag mismatch:
Код:
if(flength(File) > 0)
what is INI function to check length of a file.

Код:
doesAccountExist(account_name[])
{
	new username[MAX_PLAYER_NAME + 12];
	format(username, sizeof(username), "/Users/%s.ini", account_name);
	if(fexist(username)) 
	{
		new INI:File = INI_Open(username);
		if(flength(File) > 0) // tag mismatch
		{
			INI_Close(File);
			return 1;
		}
		INI_Close(File);
	}
	return 0;
}
Reply


Messages In This Thread
Y_INI help - by Lidor124 - 12.04.2014, 11:29
Re: Y_INI help - by MrCallum - 12.04.2014, 11:45
Re: Y_INI help - by BroZeus - 12.04.2014, 11:49
Re: Y_INI help - by Lidor124 - 12.04.2014, 13:22

Forum Jump:


Users browsing this thread: 1 Guest(s)