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;
}
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"));
)
|
ShowPlayerDialog(playerid, Dialog ID, dialog sytle, "Title", "body", "button1", button2");
(+rep if i helped. ) |
|
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
|