20.08.2015, 05:59
PHP код:
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;
}
Код:
if(doesAccountExist(playername)) if(doesAccountExist(name)) if(doesAccountExist(accountName)) if(doesAccountExist(params))