02.11.2010, 18:27
I made this code with strickens plugin
But I got one problem this is writing the Name to the DB but the Password is not Writing what is wrong here?
EDIT: Im not going make the login because theres no place to load the password xD
pawn Код:
command(register, playerid, params[])
{
new string[128];
format(string, sizeof(string), "INSERT INTO Users (Name,Password) VALUES ('%s','%s')", playerinfo[playerid][Name], playerinfo[playerid][Password]);
mysql_query(string);
SavePlayer(playerid);
SendClientMessage(playerid, COLOR_YELLOW, "[ACCOUNT] Your account has been created, please login now!");
return 1;
}
EDIT: Im not going make the login because theres no place to load the password xD