SCRIPT ERROR!! HELP
#1

When I compile I get this


PHP код:
C:\Users\Charalambos\Desktop\heizung\gamemodes\SFCRRPG.pwn(12930) : error 017undefined symbol "udb_CheckLogin"
C:\Users\Charalambos\Desktop\heizung\gamemodes\SFCRRPG.pwn(12981) : warning 202number of arguments does not match definition
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Error

Reply
#2

Should we guess the code ?!
Reply
#3

Which lines do you need bro?
Reply
#4

The callback what uses that.
Reply
#5

PHP код:
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(playeridpIpsizeof(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
Reply
#6

help guysss
Reply
#7

Do you have dubd included?

OFT: Why are there a handful of people asking help using udb? There are better things like MySQL
Reply
#8

download this include https://sampforum.blast.hk/showthread.php?tid=31
and add it to the gamemode then compile
Reply
#9

Quote:
Originally Posted by Battlezone
Посмотреть сообщение
download this include https://sampforum.blast.hk/showthread.php?tid=31
and add it to the gamemode then compile
I alredy have it,
but the problem stil exists :/
Reply
#10

Quote:
Originally Posted by DracoBlue
Посмотреть сообщение
o @requires DUtils 1.10
o @requires DINI 1.6

Regards,
Jan (DracoBlue)
Do you have dutils too?

EDIT: add this to your script, and don't forget to change the script files location
Код:
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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)