18.08.2010, 15:18
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...
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));
}