12.04.2014, 11:29
that function check if playername INI file exists in scriptfiles/users.
Warning of tag mismatch:
what is INI function to check length of a file.
Warning of tag mismatch:
Код:
if(flength(File) > 0)
Код:
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; }