[Help] Error while Compiling.
#1

Hi,guys.
I today decided to open a SATDM server but i haved a little problem in compiling the SATDM gamemode.

Here is what is the problem...

This is the error i got...

Код:
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.
And here is what is in Line 31725:

Код:
    if (udb_Create(PlayerName2(playerid),params))
Here is from where is line 31725 :
Код:
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))
	{
Here is at 2nd problem ...
Line:31805

Код:
 if (udb_CheckLogin(PlayerName2(playerid),params))
Here is from where is this line :

Код:
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))
Please HELP !
Reply
#2

Anyone help ?
Reply
#3

??
Reply
#4

Anyone PLEASE FASTER !
Reply
#5

Stop bump and triple post. Read Forum Rules.

Edit:
Do you have it on your script?
pawn Код:
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
#6

Wait 48 hours before bumping your post we could report you now for not being patient...
Reply
#7

pawn Код:
new udb_CheckLogin;
add that at the beggining of your script
Reply
#8

Quote:
Originally Posted by Xtreme_playa
Посмотреть сообщение
pawn Код:
new udb_CheckLogin;
add that at the beggining of your script
It isn't variable. This function exists on dudb.
Update to the latest version!
Reply
#9

Quote:
Originally Posted by Dwane
Посмотреть сообщение
It isn't variable. This function exists on dudb.
Update to the latest version!
it was already updated by $pimp when he released SATDM v11, no need of that.
Reply
#10

I fixed...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)