Little bit dialog help.
#1

Hello, I'm making a login/register system currently.
And I'm making an password failing system, it works fine, but just one question.
Can i make it like that, if player types in wrong password into the dialog, then it wont send him into class selection? And just the camera pos will stay at the same position?
I hope you guys understand me, thanks.
(Sorry for low english)
Reply
#2

pawn Код:
if( inputtext != password )
{
// do something here
}
else
{
// player has successfully logged in.
}
get the password variable somewhere out of a database or ini file.

I also suggest you encrypt them.
Reply
#3

@Smileys
pawn Код:
new tmp;
tmp = dini_Int(SERVERLOCATION, "Password", inputtext); //not tested
if(udb_hash(inputtext) !=tmp)
{
      SCM(playerid, -1, "Wrong Password sir!");
      ShowPlayerDialog(playerid, blah, blah);//replace with your variables
}
else
{
    SCM(playerid, -1, "Welcome!");
}
Reply
#4

udb_hash... really? https://sampforum.blast.hk/showthread.php?tid=65290
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)