22.07.2014, 07:56
Hello, how to create dialog after registration dialog auto open email dialog,
My register:
immediately give your password and click OK to display email dialog
ps: bad eng
My register:
Код:
else if(dialogid == DIALOG_REGISTER) { if(response) { if(!strlen(inputtext)) { format(string, sizeof(string), "{FFFFFF}Sveikas(-a), %s!\n\nSveiki(-a) atvykę(-usi) į {0080C0}"PAVADINIMAS"{FFFFFF}.\nJūsų vartotojas neuћregistruotas.\nPraљome įvesti norimą slaptaћodį.", GetPlayersName(playerid)); ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "{FFFFFF}Sveiki atvykę į "PAVADINIMAS".", string, "Registruotis", "Iљeiti"); } format(string, sizeof(string), "%s", inputtext); WP_Hash(password, sizeof(password), string); format(PlayerData[playerid][Fullname], 126, "%s", GetPlayersName(playerid)); format(PlayerData[playerid][Password], 129, "%s", password); PlayerData[playerid][PositionX] = 155.435546; PlayerData[playerid][PositionY] = 1174.296875; PlayerData[playerid][PositionZ] = 15.491741; PlayerData[playerid][PositionA] = 75.370346; PlayerData[playerid][Money] = 1000; PlayerData[playerid][Score] = 10; //PlayerData[playerid][nLicenzija]= 0; PlayerData[playerid][Skin] = 99; PlayerData[playerid][Health] = 100; PlayerData[playerid][Armour] = 0; PlayerData[playerid][Interior] = 0; PlayerData[playerid][VirtualWorld] = 0; gIsPlayerLoggedIn[playerid] = 1; SpawnPlayer(playerid); SetPlayerScore(playerid,PlayerData[playerid][Score]); GivePlayerMoney(playerid,PlayerData[playerid][Money]); format(string, sizeof(string), "Sveiki atvykę į "PAVADINIMAS",{FFFFFF} %s.", GetPlayersName(playerid)); SendClientMessage(playerid, COLOR_SERVER, string); mysql_format(Mysql_users, query, sizeof(query), "INSERT INTO `"ZAIDEJU_LENTELE"` (`Fullname`, `Password`, `PositionX`, `PositionY`, `PositionZ`, `PositionA`, `Health` ,`Armour`, `Interior`, `VirtualWorld`, `nLicenzija`) VALUES ('%s', '%s', 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0)", PlayerData[playerid][Fullname], PlayerData[playerid][Password]); mysql_tquery(Mysql_users, query, "", ""); } else { SendClientMessage(playerid, COLOR_SERVER, "[Klaida]:{FFFFFF} raљykite /q."); KickEx(playerid); } }
ps: bad eng