13.10.2012, 08:00
Hi. I have been recently Making An Login System. Heres My On Player Login
Just Note The Line
When I Add It, And Compile, The Pawno Stops Responding. All I Want Is To Load THe Admin File When I
Login. Please Help
Code:
case DIALOG_LOGIN: { if ( !response ) return Kick ( playerid ); if( response ) { if(udb_hash(inputtext) == PlayerInfo[playerid][pPass]) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]); PlayerInfo[playerid][pAdmin] = INI_Int(file, "Admin"); } else { ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit"); } return 1; } } } return 1; }
Code:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]); PlayerInfo[playerid][pAdmin] = INI_Int(file, "Admin"); // This ONe
Login. Please Help