15.02.2014, 13:15
(
Последний раз редактировалось alishvasis; 15.02.2014 в 17:25.
)
Hi I Make It In Dialog But Not Work Pls Help Me TnX This is Code Changed My Name But Not SAve In ScriptFile..:
And This Is My Register Dini
Код:
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"));