06.06.2015, 12:38
PHP код:
// YOUR CODE:
if(fexist(Path(playerid)))
{
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid); //Will load user's data using INI_Parsefile.
ShowPlayerDialog(playerid,Dialog_Login,DIALOG_STYLE_INPUT,"Please Login","Welcome Back . This Account Is {FF0000}Registered. \n{FFFFFF}Insert Your Password To Login To Your Account.","Login","Cancel");
{
ShowPlayerDialog(playerid,Dialog_Register,DIALOG_STYLE_INPUT,"Please Register","Welcome. This Account Is Not Registered In Our Server.\nEnter Your Password To Create A New Account.","Register","Cancel");
return 1;
}
PHP код:
// HOW IT SHOULD BE:
if(fexist(Path(playerid)))
{
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid); //Will load user's data using INI_Parsefile.
ShowPlayerDialog(playerid,Dialog_Login,DIALOG_STYLE_INPUT,"Please Login","Welcome Back . This Account Is {FF0000}Registered. \n{FFFFFF}Insert Your Password To Login To Your Account.","Login","Cancel");
}
else
{
ShowPlayerDialog(playerid,Dialog_Register,DIALOG_STYLE_INPUT,"Please Register","Welcome. This Account Is Not Registered In Our Server.\nEnter Your Password To Create A New Account.","Register","Cancel");
return 1;
}