Change Name Help
#1

Hi I Make It In Dialog But Not Work Pls Help Me TnX This is Code Changed My Name But Not SAve In ScriptFile..:
Код:
if(dialogid == DIALOG_CHANGENAME)
    {
        if (response == 0)
	    {
			return 1;
	    }
	    if (response == 1)
	    {
            if (strlen(inputtext)==0)
			{
		        SendClientMessage(playerid,COLOR_RED,"EnterYour New Name.");
                ShowChangeNameScreen(playerid);
				return 1;
			}
            udb_RenameUser(PlayerName(playerid),inputtext);
            SetPlayerName(playerid,inputtext);
            format(string,sizeof(string),"Your New Name is '%s'",inputtext);
			SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
			GivePlayerMoney(playerid, -10000000);
            return true;
	    }
	    return 1;
    }
	return 1;
}
And This Is My Register Dini
Код:
if(!dini_Exists(file)) { // If the file exist
        SendClientMessage(playerid,COLOR_RED,"[INFO]{FFFFFF}Pls Register.");
		ShowRegisterScreen(playerid);
		dini_Create(file); // Create the file
        dini_IntSet(file, "Score", 0); // Set's "Score"
        dini_IntSet(file, "Money", 0); // Set's "Money"
        SetPlayerScore(playerid, dini_Int(file, "Score")); // This describes where to load the score
        SetPlayerMoney(playerid, dini_Int(file, "Money"));
Reply
#2

HElp Me Pls
Reply
#3

zip ur whole gamemode and upload it to see whats wrong
Reply
#4

ShowPlayerDialog(playerid, Dialog ID, dialog sytle, "Title", "body", "button1", button2");

(+rep if i helped. )
Reply
#5

Quote:
Originally Posted by carl0o0s
Посмотреть сообщение
zip ur whole gamemode and upload it to see whats wrong
LOL nO TNX )
Reply
#6

Your problem is that you're using dini and dudb at the same time;

dudb has an internal check to see if the file that it's trying to rename exists, the problem with this is that dudb for some reason encodes names characters into something else, for that reason, it will never find that the file it's trying to rename exists because it's not encoded.
Reply
#7

Quote:
Originally Posted by Death1300
Посмотреть сообщение
ShowPlayerDialog(playerid, Dialog ID, dialog sytle, "Title", "body", "button1", button2");

(+rep if i helped. )
I tHINK nOT nEED...
Reply
#8

Quote:
Originally Posted by CuervO
Посмотреть сообщение
Your problem is that you're using dini and dudb at the same time;

dudb has an internal check to see if the file that it's trying to rename exists, the problem with this is that dudb for some reason encodes names characters into something else, for that reason, it will never find that the file it's trying to rename exists because it's not encoded.
pLS Give Me Code For change name I Need It And I Reped Youu tnx :XXXxxx
Reply
#9

Quote:
Originally Posted by alishvasis
Посмотреть сообщение
pLS Give Me Code For change name I Need It And I Reped Youu tnx :XXXxxx
Help Me Pls I Need It
Reply
#10

Quote:
Originally Posted by alishvasis
Посмотреть сообщение
Help Me Pls I Need It
HElp Me Plsss
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)