31.07.2011, 04:42
(
Last edited by HydraX; 31/07/2011 at 08:10 PM.
)
It works! Thanks, now I got another issue!
The Login code doesn't seem correct. I can type anything and still login.
pawn Code:
case DIALOG_LOGIN: //for loging
{
if(response)
{ //opening barrel
new
strText[179], naslov2[128];
if(strlen(inputtext) >= 4 && strlen(inputtext) <= 35)
{ //opening barrel
OnPlayerLogin(playerid, inputtext); //loading stats
} //closing barrel
else
{ //opening barrel
format(naslov2, sizeof(naslov2), ""COL_GREEN2" Welcome"COL_WHITE" %s!", GetName(playerid)); //formating our title
format(strText, 179, ""COL_WHITE"______________________________\n\n"COL_GREEN2"Name"COL_WHITE" %s"COL_GREEN2" is registered!\n\n{F81414}You typed wrong password!", GetName(playerid)); //formating our text
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, naslov2, strText, "Login", "Exit");
}
}
else Kick(playerid);
}
}