fas_v3_sqlite.nut thats doesnt exists anywhere itf
Re: is its ok
« Reply #15, on September 19th, 2015, 11:23 AM »
function Register( player, password, dbGlobal ){
::QuerySQL( dbGlobal, "INSERT INTO Accounts VALUES('" + player.Name + "', '" + player.Name.tolower() + "', '" + ::SHA256( password ) + "', 0, 0, 0, 0, 1, '" + player.IP + "')" );
::QuerySQL( dbGlobal, "INSERT INTO LMS VALUES('" + player.Name.tolower() + "', 0, 0, 0)" );
Level = 1;
LastUsedIP = player.IP;
Logged = true;
player.Cash += 2000;
::MessagePlayer( "Successfully registered.", player );
::MessagePlayer( "Don't forget your password. [" + password + "]", player );
}