Posts: 147
Threads: 73
Joined: Jul 2013
Reputation:
0
I am using a script and i think it uses an inline data base when i want to log in it says type password to register and when i do i stay like that like a freeze almost.
Posts: 2,181
Threads: 98
Joined: Jan 2011
Reputation:
0
Can you paste the code here? Probably the DialogResponse handle for registering. Thanks.
Posts: 147
Threads: 73
Joined: Jul 2013
Reputation:
0
I don't really know where is the coe but think this?
stock OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new
sqlQuery[500],
playername3[MAX_PLAYER_NAME],
password2 = num_hash(password),
playersip[24],
randphone = 100000 + random(899999), //minimum 1000 max 9999 //giving one at the start
registered[24];
new y,m,d,h,mi,s;
getdate(y,m,d); gettime(h,mi,s);
format(registered,sizeof(registered), "%d/%d/%d at %d:%d:%d",d,m,y,h,mi,s);
GetPlayerName(playerid, playername3, sizeof(playername3));
GetPlayerIp(playerid, playersip, sizeof(playersip));
format(sqlQuery, sizeof(sqlQuery), "INSERT INTO samp_users SET `Username`='%s', `Password`='%d', `PhoneNr`='%d', `IP`='%s', `RegistredDate`='%s'", playername3, password2, randphone, playersip, registered);
mysql_query(sqlQuery, THREAD_REGISTER, playerid);
}
return 1;
}
Posts: 147
Threads: 73
Joined: Jul 2013
Reputation:
0
Does this require me to have a website or something.