07.10.2014, 20:01
Here the GM load the user... In the query.
So?..
I have tried something, but no results...
pawn Код:
stock OnPlayerLogin(playerid, password[])
{
new
data[256],
string[128],
playername[MAX_PLAYER_NAME],
DBResult:result;
GetPlayerName(playerid, playername, sizeof(playername));
Encrypt(password);
format(string, sizeof(string), "SELECT * FROM `Accounts` WHERE `Username` = '%s' AND `Password` = '%s'", playername, password);
result = db_query(AccountDB, string);
//blablabla
I have tried something, but no results...