C:\Users\Charalambos\Desktop\heizung\gamemodes\SFCRRPG.pwn(12930) : error 017: undefined symbol "udb_CheckLogin"
C:\Users\Charalambos\Desktop\heizung\gamemodes\SFCRRPG.pwn(12981) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
if (udb_CheckLogin(PlayerName(playerid),inputtext))
{
BankCash[playerid] =dUserINT(PlayerName(playerid)).("Bankcash");
GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("Money")-GetPlayerMoney(playerid));
SetPlayerScore(playerid,dUserINT(PlayerName(playerid)).("Score")-GetPlayerScore(playerid));
CanUseArmy[playerid] =dUserINT(PlayerName(playerid)).("Army");
CanUseCIA[playerid] =dUserINT(PlayerName(playerid)).("CIA");
AdminLevel[playerid] =dUserINT(PlayerName(playerid)).("Adminlevel");
IsRegularPlayer[playerid] =dUserINT(PlayerName(playerid)).("RegularPlayer");
NameBanned[playerid] =dUserINT(PlayerName(playerid)).("Nameban");
DrugHouseOwner[playerid] =dUserINT(PlayerName(playerid)).("DrugHouseOwner");
OttoOwner[playerid] =dUserINT(PlayerName(playerid)).("OttoOwner");
TerroristSkill[playerid] =dUserINT(PlayerName(playerid)).("TSkill");
RobSkill[playerid] =dUserINT(PlayerName(playerid)).("RobSkill");
HasPackC4[playerid] =dUserINT(PlayerName(playerid)).("HasPackC4");
HasPackRope[playerid] =dUserINT(PlayerName(playerid)).("HasPackRope");
HasPackMoney[playerid] =dUserINT(PlayerName(playerid)).("HasPackMoney");
SavedWantedLevel[playerid] =dUserINT(PlayerName(playerid)).("SavedWantedLevel");
SavedJailTime[playerid] =dUserINT(PlayerName(playerid)).("SavedJailTime");
new pIp[16];
GetPlayerIp(playerid, pIp, sizeof(pIp));
dUserSet(PlayerName(playerid)).("IP", pIp);
PLAYERLIST_authed[playerid]=true;
return SendClientMessage(playerid,COLOR_LIGHTBLUE,"You have successfully logged in! Your previous stats have been restored.");
}
ShowLoginScreen(playerid);
CheckPasswordAttempts(playerid);
}
return 1;
download this include https://sampforum.blast.hk/showthread.php?tid=31
and add it to the gamemode then compile |
stock udb_CheckLogin( nickname[ ], pwd[ ] ) { new fname[ MAX_STRING ]; format( fname, sizeof( fname ), /* ScriptFiles...(File Location) --> */"/%s.sav", udb_encode( nickname ) ); if( udb_UserInt( nickname, "password_hash" ) == udb_hash( pwd ) ) return true; return false; }