E:\Documents and Settings\Administrator\Desktop\Folder\SATDM~RP v13.5\Gamemodes\SATDM_v13.pwn(31725) : warning 202: number of arguments does not match definition E:\Documents and Settings\Administrator\Desktop\Folder\SATDM~RP v13.5\Gamemodes\SATDM_v13.pwn(31805) : error 017: undefined symbol "udb_CheckLogin" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
if (udb_Create(PlayerName2(playerid),params))
CMD:register(playerid,params[]) { if (PlayerInfo[playerid][LoggedIn] == 1) return SendClientMessage(playerid,COLOR_RED,"ACCOUNT: You are already registered and logged in."); if (udb_Exists(PlayerName2(playerid))) return SendClientMessage(playerid,COLOR_RED,"ACCOUNT: This account already exists, please use '/login [password]'."); if (strlen(params) == 0) return SendClientMessage(playerid,COLOR_RED,"ACCOUNT: Correct usage: '/register [password]'"); if (strlen(params) < 4 || strlen(params) > 20) return SendClientMessage(playerid,COLOR_RED,"ACCOUNT: Password length must be greater than three characters"); if (udb_Create(PlayerName2(playerid),params)) {
if (udb_CheckLogin(PlayerName2(playerid),params))
CMD:login(playerid,params[]) { if (PlayerInfo[playerid][LoggedIn] == 1) return SendClientMessage(playerid,COLOR_RED,"ACCOUNT: You are already logged in."); if (!udb_Exists(PlayerName2(playerid))) return SendClientMessage(playerid,COLOR_RED,"ACCOUNT: Account doesn't exist, please use '/register [password]'."); if (strlen(params)==0) return SendClientMessage(playerid,COLOR_RED,"ACCOUNT: Correct usage: '/login [password]'"); if (udb_CheckLogin(PlayerName2(playerid),params))
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;
}
new udb_CheckLogin;
pawn Код:
|
It isn't variable. This function exists on dudb.
Update to the latest version! |