Register system
#6

Код:
I:\CokeTDM [0.3e]\gamemodes\NpTDM.pwn(1023) : error 017: undefined symbol "udb_hash"
I:\CokeTDM [0.3e]\gamemodes\NpTDM.pwn(1041) : error 017: undefined symbol "udb_hash"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Here the Line 1023 & 1041
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch( dialogid )
    {
        case DIALOG_REGISTER:
        {
            if (!response) return Kick(playerid);
            if(response)
            {
                if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Password",udb_hash(inputtext)); // - 1023 ---------------------- here the line 1023
                INI_WriteInt(File,"Cash",0);
                INI_WriteInt(File,"Admin",0);
                INI_WriteInt(File,"Kills",0);
                INI_WriteInt(File,"Deaths",0);
                INI_Close(File);

//                SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
                SpawnPlayer(playerid);
                ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN" - Have a Fun!!! -","Ok","");
			}
        }

        case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass]) // - 1041 -------------------------------- Here the line 1041
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
					ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Success!",""COL_GREEN"You have successfully logged in!","Ok","");
                }
                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;
}
Reply


Messages In This Thread
Register system - by Bug. - 07.10.2012, 15:58
Re: Register system (+Rep). - by Bug. - 07.10.2012, 16:00
Re: Register system (+Rep). - by HyDrAtIc - 07.10.2012, 16:02
Re: Register system (+Rep). - by ikbenremco - 07.10.2012, 16:38
Re : Register system (+Rep). - by yusei - 07.10.2012, 16:43
Re: Register system - by Bug. - 08.10.2012, 12:51
Re: Register system, How to fix it? - by Bug. - 08.10.2012, 13:11
Re: Register system - by Bug. - 08.10.2012, 13:52
Re: Register system - by Bug. - 08.10.2012, 14:44

Forum Jump:


Users browsing this thread: 1 Guest(s)