Change Name Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Change Name Help (
/showthread.php?tid=494960)
Change Name Help -
alishvasis - 15.02.2014
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"));
Re: Change Name Help -
alishvasis - 15.02.2014
HElp Me Pls
Re: Change Name Help -
carl0o0s - 15.02.2014
zip ur whole gamemode and upload it to see whats wrong
Re: Change Name Help -
Sledgehammer - 15.02.2014
ShowPlayerDialog(playerid, Dialog ID, dialog sytle, "Title", "body", "button1", button2");
(+rep if i helped. )
Re: Change Name Help -
alishvasis - 15.02.2014
Quote:
Originally Posted by carl0o0s
zip ur whole gamemode and upload it to see whats wrong
|
LOL nO TNX

)
Re: Change Name Help -
CuervO - 15.02.2014
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.
Re: Change Name Help -
alishvasis - 15.02.2014
Quote:
Originally Posted by Death1300
ShowPlayerDialog(playerid, Dialog ID, dialog sytle, "Title", "body", "button1", button2");
(+rep if i helped. )
|
I tHINK nOT nEED...
Re: Change Name Help -
alishvasis - 15.02.2014
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
Re: Change Name Help -
alishvasis - 15.02.2014
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
Re: Change Name Help -
alishvasis - 16.02.2014
Quote:
Originally Posted by alishvasis
Help Me Pls I Need It 
|
HElp Me Plsss