[HELP] 1 Error code
#1

C:\Users\Cody's\Desktop\MY CnR Script\gamemodes\WCAR.pwn(12879) : error 017: undefined symbol "udb_RenameUser"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.



Код:
	    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
#2

What is this udb_RenameUser - include, stock?
Reply
#3

no clue i downloaded this gm :P
Reply
#4

Try using CTRL+H and search for it.
Reply
#5

found it under this


Код:
    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;
			}
           new 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


Forum Jump:


Users browsing this thread: 3 Guest(s)