07.01.2011, 02:43
edit:
Would work right? and anti injectable?
pawn Код:
if (dialogid == 1)
{
new string[256], escpass[100];
mysql_real_escape_string(inputtext, escpass);
GetPlayerName(playerid, UserStats[playerid][Name], MAX_PLAYER_NAME);
format(string,sizeof(string),"INSERT INTO `Users` (`Name`, `Password`) VALUES ('%s', '%s')",UserStats[playerid][Name], escpass);
mysql_query(string);
}