18.10.2014, 13:24
Rudy, it doesn't work.
This is the login. The register system works.
PHP код:
if(fexist(string))
{
new File:LogFile = fopen(string, io_read);
if(!LogFile) printf("error: %s (io_read)", string);
fread(LogFile, data, sizeof(data));
if(!strcmp(data, cmdtext[5], true)) return SendClientMessage(playerid, -1, "{FFFFFF}SERVER: The password is not correct.");
else
{
SetPVarString(playerid, "password", cmdtext[5]);
SendClientMessage(playerid, -1, "{FFFFFF}SERVER: You have been successfully logged in.");
Log[playerid] = true;
}
fclose(LogFile);
}