05.08.2012, 13:38
pawn Код:
//at the top of the script
new Regdialog = 1;
if(dialogid == Regdialog)
{
if(strlen(inputtext) == 0)
{
ShowPlayerDialog(playerid,Regdialog,DIALOG_STYLE_INPUT,"Register - Enter your password","You are about to register a new account! \nPlease choose the password for it! \n","Register!","Cancel");
}
else
{
new Query[128];
new EscapedText[60];
mysql_real_escape_string(inputtext, EscapedText);
format(Query,sizeof(Query),"INSERT INTO `oyuncular` (id,sifre,Para) VALUES ('%s','%s,'0')",GetPName(playerid),EscapedText); // Here is the new error'd line.
mysql_query(Query);
SendClientMessage(playerid,green,"You have been successfully registered!");
GivePlayerMoney(playerid,1000);
}
}