Cannot find the problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Cannot find the problem (
/showthread.php?tid=586193)
Cannot find the problem -
SoFahim - 20.08.2015
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;
}
One every
Код:
if(doesAccountExist(playername))
if(doesAccountExist(name))
if(doesAccountExist(accountName))
if(doesAccountExist(params))
the Account reset to blank. How to fix the problem. I cannot find any error here
Re: Cannot find the problem -
Toxik - 20.08.2015
add some
functions