SFCRRPG question about udb_rename error
#1

Hi all

i'm breaking my head over this can someone please help me out


Quote:

}
return 1;
}
if(dialogid == DIALOG_CHANGEPASS)
{
if (response == 0)
{
return 1;
}
if (response == 1)
{
if (strlen(inputtext)==0)
{
SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired password in the box.");
ShowChangePassScreen(playerid);
return 1;
}
udb_UserSetInt(PlayerName(playerid),"password_hash ",udb_hash(inputtext));
format(string,sizeof(string),"You have successfully changed your password to '%s', use this to login from now on.",inputtext);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string) ;
return true;
}
return 1;
}
if(dialogid == DIALOG_CHANGENAME)
{
if (response == 0)
{
return 1;
}
if (response == 1)
{
if (strlen(inputtext)==0)
{
SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired name in the box.");
ShowChangeNameScreen(playerid);
return 1;
}
udb_RenameUser(nickname[],newnick[])
{
SetPlayerName(nickname[],newnick[]);
}
format(string,sizeof(string),"You have successfully changed your name to '%s', use this to login from now on.",inputtext);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string) ;
return true;
}
return 1;
}
return 1;
}


the error is

C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 3047) : error 017: undefined symbol "udb_RenameUser"
C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 3049) : error 017: undefined symbol "nickname"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.








i made a line #include <dudb>
and added the dudb.inc in the include folder
Reply
#2

Try that.
Код:
}
return 1;
}
if(dialogid == DIALOG_CHANGEPASS)
{
if (response == 0)
{
return 1;
}
if (response == 1)
{
if (strlen(inputtext)==0)
{
SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired password in the box.");
ShowChangePassScreen(playerid);
return 1;
}
udb_UserSetInt(PlayerName(playerid),"password_hash ",udb_hash(inputtext));
format(string,sizeof(string),"You have successfully changed your password to '%s', use this to login from now on.",inputtext);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string) ;
return true;
}
return 1;
}
if(dialogid == DIALOG_CHANGENAME)
{
if (response == 0)
{
return 1;
}
if (response == 1)
{
if (strlen(inputtext)==0)
{
SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired name in the box.");
ShowChangeNameScreen(playerid);
return 1;
}
udb_RenameUser(PlayerName(playerid),inputtext);
SetPlayerName(playerid,inputtext);
format(string,sizeof(string),"You have successfully changed your name to '%s', use this to login from now on.",inputtext);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string) ;
return true;
}
return 1;
}
return 1;
}
Reply
#3

Quote:
Originally Posted by Raweresh
Посмотреть сообщение
Try that.
Код:
}
return 1;
}
if(dialogid == DIALOG_CHANGEPASS)
{
if (response == 0)
{
return 1;
}
if (response == 1)
{
if (strlen(inputtext)==0)
{
SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired password in the box.");
ShowChangePassScreen(playerid);
return 1;
}
udb_UserSetInt(PlayerName(playerid),"password_hash ",udb_hash(inputtext));
format(string,sizeof(string),"You have successfully changed your password to '%s', use this to login from now on.",inputtext);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string) ;
return true;
}
return 1;
}
if(dialogid == DIALOG_CHANGENAME)
{
if (response == 0)
{
return 1;
}
if (response == 1)
{
if (strlen(inputtext)==0)
{
SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired name in the box.");
ShowChangeNameScreen(playerid);
return 1;
}
udb_RenameUser(PlayerName(playerid),inputtext);
SetPlayerName(playerid,inputtext);
format(string,sizeof(string),"You have successfully changed your name to '%s', use this to login from now on.",inputtext);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string) ;
return true;
}
return 1;
}
return 1;
}

gives me


Quote:

C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 3014) : error 010: invalid function or declaration
C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 3016) : error 010: invalid function or declaration
C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 301 : error 010: invalid function or declaration
C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 3020) : error 010: invalid function or declaration
C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 3022) : error 010: invalid function or declaration
C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 3026) : error 010: invalid function or declaration
C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 302 : error 021: symbol already defined: "udb_UserSetInt"
C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 302 : error 017: undefined symbol "playerid"
C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 302 : error 010: invalid function or declaration
C:\Users\Joyce\Desktop\pwn\gamemodes\SFCRRPG.pwn(1 3028 -- 13031) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


10 Errors.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)