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
#2

Check if the file exist and Empty Ini's are still valid!


Quote:
Millenium Roleplay
Reply
#3

use fexist no need for checking lenght of file
Reply
#4

I'm new to Y INI so i hope you understand me
BTW is that possible to load all %s.ini user files from scriptfiles?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)