29.08.2015, 12:11
doesAccountExist(account_name[]) {
new
sz_accStr[MAX_PLAYER_NAME + 12];
format(sz_accStr, sizeof(sz_accStr), "users/%s.db", account_name);
if(fexist(sz_accStr)) {
new
File: f_Handle = fopen(sz_accStr, io_read);
if(flength(f_Handle) > 0) {
fclose(f_Handle);
return 1;
}
fclose(f_Handle);
}
return 0;
}
new
sz_accStr[MAX_PLAYER_NAME + 12];
format(sz_accStr, sizeof(sz_accStr), "users/%s.db", account_name);
if(fexist(sz_accStr)) {
new
File: f_Handle = fopen(sz_accStr, io_read);
if(flength(f_Handle) > 0) {
fclose(f_Handle);
return 1;
}
fclose(f_Handle);
}
return 0;
}