Reset Data
#3

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;
}
Reply


Messages In This Thread
Reset Data - by SoFahim - 29.08.2015, 11:15
Re: Reset Data - by Sjn - 29.08.2015, 11:45
Re: Reset Data - by SoFahim - 29.08.2015, 12:11
Re: Reset Data - by SoFahim - 29.08.2015, 13:19
Re: Reset Data - by Lordzy - 29.08.2015, 13:26
Re: Reset Data - by SoFahim - 29.08.2015, 13:40

Forum Jump:


Users browsing this thread: 1 Guest(s)