29.05.2012, 15:17
Код:
error 017: undefined symbol "udb_hash"
Код:
if(dialogid == 2) { new name[MAX_PLAYER_NAME], file[256],string[227]; GetPlayerName(playerid, name, sizeof(name)); format(file, sizeof(file), SERVER_USER_FILE, name); if(!response) return Kick(playerid); if (!strlen(inputtext)) return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "{FFFFFF}", ""COL_RED"[ERROR]{FFFFFF}Incorrect Password!", "Login", "Leave"); new tmp; tmp = dini_Int(file, "Password"); if(udb_hash(inputtext) != tmp) // HERE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< { format(string, sizeof (string), "{FFFFFF}Welcome "COL_BLUE"%s(%d){FFFFFF}.You're registered\n\nPlease log in by inserting your password.\n"embed_red"Wrong password!", name,playerid); ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD,"{FFFFFF}Login", string,"Login","Kick"); PlayerInfo[playerid][pFailLogins]++; if(PlayerInfo[playerid][pFailLogins] >= MAX_FAIL_LOGINS) { SendClientMessage(playerid, red, "[ERROR]"embed_grey"Failed to login!"); Kick(playerid); return 1; } } else { gPlayerLogged[playerid] = 1; PlayerInfo[playerid][pAdmin] = dini_Int(file, "AdminLevel"); PlayerInfo[playerid][pCash] = dini_Int(file, "Money"); PlayerInfo[playerid][pBank] = dini_Int(file, "Bank"); PlayerInfo[playerid][pFaction] = dini_Int(file, "Faction"); PlayerInfo[playerid][pRank] = dini_Int(file, "FactionRank"); PlayerInfo[playerid][pSkin] = dini_Int(file, "Skin"); PlayerInfo[playerid][pNeons] = dini_Int(file, "Neons"); PlayerInfo[playerid][pPot] = dini_Int(file, "Pot"); PlayerInfo[playerid][pPhone] = dini_Int(file, "Phone"); PlayerInfo[playerid][pLevel] = dini_Int(file, "Level"); PlayerInfo[playerid][pUpgradePoints] = dini_Int(file, "UpgradePoints"); PlayerInfo[playerid][pJob] = dini_Int(file, "Job"); SendClientMessage(playerid,0xFFFFFFF,""embed_blue"[INFO]{FFFFFF}You have been {8CF051}succesfully {FFFFFF}logged in."); } }