28.12.2010, 05:03
why does this let anyone login with any password ?
Код:
format(string, sizeof(string), "SELECT * FROM users WHERE User='%s' AND Password = MD5('%s') LIMIT 1", PlayerName, inputtext); new escape[140]; mysql_real_escape_string(inputtext,escape); new Success = mysql_fetch_int(); if (Success = true) { // blah blah , logs in the person.