26.07.2012, 10:52
Quote:
Both of your codes (above) don't make any sense. If response is 0, then it is 0 and nothing else. The other code block is never called. There is nothing wrong with the original structure the OP posted.
The file is probably created when connecting. |
pawn Код:
public OnPlayerConnect(playerid)
{
new Name [ 35 ] ;
format ( Name , 35 , UserPath , GetName ( playerid ) ) ;
if ( fexist ( Name ) )
{
INI_ParseFile ( Name , "LoadUser_Data", .bExtra = true, .extra = playerid);
ShowPlayerDialog ( playerid , DIALOG_LOG , DIALOG_STYLE_INPUT , "{80FF00}Login" , "{FFFFFF}Your account was {80FF00}found {FFFFFF}in our database!\nType your password to login:" , "Login" , "Leave" ) ;
}
else
{
ShowPlayerDialog ( playerid , DIALOG_REG , DIALOG_STYLE_INPUT , "{0215FB}Register" , "{FFFFFF}Your account does {FF0000}not {FFFFFF}exist in our database!\nType your desired password to create an account:" , "Register" , "Leave" ) ;
}
return 1;
}
Mistakes ?