03.08.2015, 17:57
Hy, i want to delete the part of Refferal account and i can't 
Can Help me ? !
DIALOG_REGSITER6 is the part of refferal

Can Help me ? !
PHP код:
if(dialogid == DIALOG_REGISTER4)
{
new length = strlen(inputtext);
if(length > 40)
{
SCM(playerid, COLOR_WHITE, "Please enter another e-mail (maximum 40 characters).");
ShowPlayerDialog(playerid, DIALOG_REGISTER4, DIALOG_STYLE_INPUT, "Email:", "Va rugam sa va introduceti mai jos adresa de Email:", "OK", "");
return 1;
}
if(IsMail(inputtext) && response && strlen(inputtext)<30)
{
new emailtext[64];
mysql_real_escape_string(inputtext, emailtext);
strmid(PlayerInfo[playerid][pEmail], emailtext, 0, strlen(emailtext), 64);
new wakaname1[25];
GetPlayerName(playerid,wakaname1,25);
new str1[512];
format(str1,512,"UPDATE users SET `Email`='%s' WHERE `name`='%s'",PlayerInfo[playerid][pEmail],wakaname1);
mysql_query(SQL,str1);
format(string, sizeof(string), "RedFaction RPG: {FFFFFF}Email-ul tau este %s.", PlayerInfo[playerid][pEmail]);
//SCM(playerid, 0xFFFF00AA, string);
ShowPlayerDialog(playerid, DIALOG_REGISTER6, DIALOG_STYLE_INPUT, "Referral:", "Scrieti numele jucatorului care te-a adus pe server sau faceti click pe Skip daca nu va adus nimeni.", "Submit", "Skip");
RegistrationStep[playerid] = 5;
return 1;
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER4, DIALOG_STYLE_INPUT, "Email:", "Va rugam sa va introduceti mai jos adresa de Email:", "OK", "");
return 1;
}
}
if(dialogid == DIALOG_REGISTER6)
{
if(response)
{
new length = strlen(inputtext);
if(length > 1)
{
new account = MySQLCheckAccount(inputtext);
if(account == 0)
{
SCM(playerid,COLOR_WHITE,"This name does not exist.");
ShowPlayerDialog(playerid, DIALOG_REGISTER6, DIALOG_STYLE_INPUT, "Referral:", "Scrieti numele jucatorului care te-a adus pe server sau faceti click pe Skip daca nu va adus nimeni.", "Submit", "Skip");
}
else if(account == PlayerInfo[playerid][pSQLID])
{
SCM(playerid,COLOR_WHITE,"Please chose another name.");
ShowPlayerDialog(playerid, DIALOG_REGISTER6, DIALOG_STYLE_INPUT, "Referral:", "Scrieti numele jucatorului care te-a adus pe server sau faceti click pe Skip daca nu va adus nimeni.", "Submit", "Skip");
}
else
{
PlayerInfo[playerid][pReferral] = account;
Update(playerid,pReferralx);
RegistrationStep[playerid] = 6;
ShowPlayerDialog(playerid, DIALOG_REGISTER5, DIALOG_STYLE_MSGBOX, "Language/Limba:", "Please choose your language:\nTe rog sa iti alegi limba:", "English", "Romana");
format(string, sizeof(string), "RedFaction RPG: {FFFFFF}Jucatorul care te-a adus aici este %s.",inputtext);
//SCM(playerid, 0xE6E6E6E6, string);
}
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER6, DIALOG_STYLE_INPUT, "Referral:", "Tasteaza numele jucatorului care te-a adus pe server sau apasa pe Skip", "Submit", "Skip");
SCM(playerid,COLOR_WHITE,"Name must contain at least one character.");
RegistrationStep[playerid] = 6;
}
return 1;
}
if(!response)
{
ShowPlayerDialog(playerid, DIALOG_REGISTER5, DIALOG_STYLE_MSGBOX, "Language:", "Please choose your language:\nTe rog sa iti alegi limba:", "English", "Romana");
PlayerInfo[playerid][pReferral] = 0;
Update(playerid,pReferralx);
return 1;
}
}
if(dialogid == DIALOG_REGISTER5)
{
if(response)
{
language[playerid] = 1;
//SCM(playerid, 0xE6E6E6E6, "Va multumim pentru timpul acordat, acum urmeaza tutorialul.");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
new connectplayer[60],stringplayer[100];
GetPlayerName(playerid,connectplayer,sizeof(connectplayer));
format(stringplayer,sizeof(stringplayer),"%s (%d) s-a inregistrat pe server",connectplayer,playerid);
HLChat(COLOR_LIGHTRED,stringplayer);
ABroadCast(COLOR_LIGHTRED,stringplayer,1);
}
if(!response)
{
language[playerid] = 2;
//SCM(playerid, 0xE6E6E6E6, "Multumim pentru raspunsurile la intrebari, va urma un tutorial.");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
new connectplayer[60],stringplayer[100];
GetPlayerName(playerid,connectplayer,sizeof(connectplayer));
format(stringplayer,sizeof(stringplayer),"%s (%d) s-a inregistrat pe server",connectplayer,playerid);
HLChat(COLOR_LIGHTRED,stringplayer);
ABroadCast(COLOR_LIGHTRED,stringplayer,1);
}
return 1;
}