10.06.2013, 19:09
For some reason, this code crashes my server:
Any ideas?
pawn Код:
public OnMysqlCheckPass(playerid, password[])
{
new rows, fields;
cache_get_data(rows, fields, Gconnection);
if(rows) {
new temp[100], newpass[400];
cache_get_row(0, 37, temp);
format(newpass, 400, "%s%s", temp, password);
new Query[500];
format(Query, 500, "SELECT `score` FROM `users` WHERE `username`='%s' AND password='%s'", PlayerName(playerid), newpass);
mysql_function_query(Gconnection, Query, true, "OnPlayerRequestLogin", "d", playerid);
}
return 1;
}