Posts: 188
Threads: 49
Joined: Jul 2011
Код:
if (strcmp(cmd, "/login", true) ==0 )
{
if (gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "SERVER: You are already logged in.");
return 1;
}
if (gPlayerAccount[playerid] == 0)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "[SERVER]: You do not have an account, type /register <password>");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /login [password]");
return 1;
}
format(string, sizeof(string), "users/%s.ini", PlayerName(playerid));
new File: hFile = fopen(string, io_read);
if (hFile)
{
fclose(hFile);
OnPlayerLogin(playerid,tmp);
return 1;
}
return 1;
}
is it possible to change this to a Dialog login?
Can you send me the code for it if you know how to, please :P
Posts: 188
Threads: 49
Joined: Jul 2011
Quote:
Originally Posted by VincentDunn
Yes it is very much possible. Use ****** next time why don't you.
Click me.
|
Oh thanks you !
............
Its not the same type of files for Log in maybe its not the same code and dosent support that.
Posts: 188
Threads: 49
Joined: Jul 2011
Quote:
Originally Posted by VincentDunn
Then use a different saving system. There are tons more efficient ones out there, and judging from your previous posts, you aren't very well fluent in Pawn. So go read some tutorials, and goodluck.
|
Duh i read some tutorials there no errors nothing but its dosent works like its kick me off after i try to log with the dialog -.- i need a Code or something.