17.12.2012, 16:56
I got this code:
I got no errors but when I go IG it tells me that I don't have an account (I am having an account at scriptfiles/accounts/Lenny_Kraff.ini and I can /login but it shows that I can't.)
pawn Код:
GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "accounts/%s.ini", plname);
if(fexist(string))
{
gPlayerAccount[playerid] = 1;
SendClientMessage(playerid, COLOR_YELLOW, "SERVER: That nick is registered, please login");
SendClientMessage(playerid, COLOR_WHITE, "HINT: You can now login by typing /login <password>");
return 1;
}
else
{
gPlayerAccount[playerid] = 0;
SendClientMessage(playerid,COLOR_YELLOW,"You dont have an account. Please register by using /register [password]");
return 1;
}