25.02.2011, 01:50
I've honestly no idea why I'm getting syntax errors on this code (the query).
pawn Код:
new buff[129];
WP_Hash(buff, sizeof(buff), inputtext);
mysql_real_escape_string(Name, EscapedName);
mysql_real_escape_string(buff, EscapedPassword);
#pragma unused Name
format(Query, sizeof(Query), "INSERT INTO `accounts` (username, password) VALUES('%s', '%s')", EscapedName, EscapedPassword);
mysql_query(Query);