25.01.2010, 20:14
pawn Код:
if(dialogid == 3)
{
if(response == 1)
{
if(IsPlayerConnected(playerid))
{
if(strlen(inputtext))
{
new idx;
new tmp[256];
new tmppass[64];
tmp = strtok(inputtext, idx);
strmid(tmppass, tmp, 0, strlen(inputtext), 255);
Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
return 1;
}
else
{
ShowPlayerDialog(playerid,3,DIALOG_STYLE_INPUT,"Error","Enter Password","Login","Dissconect");
return 1;
}
}
}
if(response == 2)
{
Kick(playerid);
}
}
How to fix ? or how to detect if the password begins with a space ?
LE : http://pastebin.com/m132a7e97
The OnPlayerLogin Function http://pastebin.com/m119d9413