Iți fac eu codul corect. uite
if(dialogid == DIALOG_REGISTER3)
{
if(response)
{
new tmppass[64];
mysql_real_escape_string(inputtext, tmppass);
new age = strval(tmppass);
if(age > 1 && age < 100 && response)
{
PlayerInfo[playerid][pAge] = age;
new str1[512];
mysql_format(SQL,str1,512,"UPDATE users SET `Age`='%d' WHERE `name`='%s'",PlayerInfo[playerid][pAge],PlayerInfo[playerid][pNormalName]);
mysql_tquery(SQL,str1,"","");
RegistrationStep[playerid] = 4;
if(PlayerInfo[playerid][pLanguage] == 2)
{
SendClientMessage(playerid, COLOR_WHITE, "Introdu adresa de email. Daca nu vrei sa-ti setezi email-ul, poti apasa ok.");
SendClientMessage(playerid, COLOR_WHITE, "Emailul te poate ajuta pentru a-ti recupera parola, in caz ca o uiti.");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "Type your email. If you don't want to set your email, just click ok.");
SendClientMessage(playerid, COLOR_WHITE, "The email will help you to recover your password, in case you loose it.");
}
ShowPlayerDialog(playerid, DIALOG_REGISTER4, DIALOG_STYLE_INPUT, "Email", "(ex:
[email protected])", "Ok", "");
}
else
{
ShowPlayerDialog(playerid,DIALOG_REGISTER2,DIALOG_STYLE_INPUT,"Your age:","Please enter below the age of your character:","Ok","");
return 1;
}
}
return 1;
}
if(dialogid == DIALOG_REGISTER4)
{
new emailtext[64];
mysql_real_escape_string(inputtext, emailtext);
strmid(PlayerInfo[playerid][pEmail], emailtext, 0, strlen(emailtext), 64);
if(IsMail(inputtext) && response && strlen(inputtext)<30)
{
if(PlayerInfo[playerid][pLanguage] == 2)
{
format(string, sizeof(string), "Email setat: %s.", PlayerInfo[playerid][pEmail]);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
else
{
format(string, sizeof(string), "Email set to: %s.", PlayerInfo[playerid][pEmail]);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
}
else
{
if(PlayerInfo[playerid][pLanguage] == 2)
{
SendClientMessage(playerid, COLOR_YELLOW, "Ai ales sa nu introduci emailul. Daca vrei sa-ti setezi un email pe cont in viitor, intra pe panel.Nume-Server.ro.");
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "You choosed not to set an email. You can go to panel.Nume-Server.ro to set an email at a later date, if you want to.");
}
}
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
TogglePlayerSpectating(playerid, 1);
new connectplayer[60],stringplayer[100];
GetPlayerName(playerid,connectplayer,sizeof(connectplayer));
format(stringplayer,sizeof(stringplayer),"New account: %s (%d).",connectplayer,playerid);
HLChat(COLOR_RED2,stringplayer);
ABroadCast(COLOR_RED2,stringplayer,1);
foreach(Player,iss)
{
if(PlayerInfo[iss][pHelper] > 0 || PlayerInfo[iss][pAdmin] > 0)
{
KillTimer(deathdeletetime[iss]);
SendDeathMessageToPlayer(iss, INVALID_PLAYER_ID, playerid, 200);
deathdeletetime[iss] = SetTimerEx("DeleteDeathMessage",30000,0,"d",iss);
}
}
return 1;
}
Aștept sa imi zici daca e bine