Login/Register
#1

Okay, so I've allways used dudb when creating scripts.
Now i thought it'd be time for me to advance a bit so I decided to drop the includes.

I've solved the Register system, it should work without troubles..
However, when I got to OnPlayerLogin... I got stuck.

So I would really appriciate if someone could help me out here

This is what i got...
pawn Код:
public OnPlayerLogin(playerid, Password[])
{
    new string[128];
    format(string, sizeof(string), "RPG/Accounts/%s.cfg", Name(playerid));
    new File:flogin = fopen(string, io_read);
   
    if(flogin)
    {
        //How do I make the server check if "Password" is equal to the files pass line??
    }
    return printf("Player %s has logged in.", Name(playerid));
}
Reply


Messages In This Thread
Login/Register - by Lorrden - 18.08.2010, 15:18
Re: Login/Register - by Lorrden - 21.08.2010, 16:04
Re: Login/Register - by AiVAMAN - 21.08.2010, 16:14
Re: Login/Register - by Lorrden - 22.08.2010, 13:07
Re: Login/Register - by vital2k - 22.08.2010, 13:19
Re: Login/Register - by Lorrden - 22.08.2010, 14:35
Re: Login/Register - by vital2k - 22.08.2010, 14:43
Re: Login/Register - by Lorrden - 22.08.2010, 15:48
Re: Login/Register - by Finn - 22.08.2010, 15:53
Re: Login/Register - by Lorrden - 22.08.2010, 16:00

Forum Jump:


Users browsing this thread: 2 Guest(s)