SA-MP Forums Archive
SCRIPT ERROR!! HELP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SCRIPT ERROR!! HELP (/showthread.php?tid=576712)



SCRIPT ERROR!! HELP - FrankLucretti - 06.06.2015

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




Re: SCRIPT ERROR!! HELP - nezo2001 - 06.06.2015

Should we guess the code ?!


Re: SCRIPT ERROR!! HELP - FrankLucretti - 06.06.2015

Which lines do you need bro?


Re: SCRIPT ERROR!! HELP - J0sh... - 06.06.2015

The callback what uses that.


Re: SCRIPT ERROR!! HELP - FrankLucretti - 06.06.2015

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



Re: SCRIPT ERROR!! HELP - FrankLucretti - 06.06.2015

help guysss


Re: SCRIPT ERROR!! HELP - J0sh... - 06.06.2015

Do you have dubd included?

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


Re: SCRIPT ERROR!! HELP - Battlezone - 06.06.2015

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


Re: SCRIPT ERROR!! HELP - FrankLucretti - 06.06.2015

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 :/


Re: SCRIPT ERROR!! HELP - Battlezone - 06.06.2015

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;
}