if(dialogid == DIALOG_LOGIN+1) { if(response) { if(strlen(inputtext) < 4 || strlen(inputtext) > 16 || !strlen(inputtext)){ return ShowPlayerLoginDialog(playerid, gPlayerAccount[playerid]); new password[64]; strmid(password, inputtext, 0, strlen(inputtext), 255); Encrypt(password); OnPlayerRegister(playerid,password); } else { SendClientMessage(playerid, COLOR_YELLOW, "[!] "#C_WHITE" msg "); Kick(playerid); return 1; } } }
if(dialogid == DIALOG_LOGIN+1) { if(response) { if(strlen(inputtext) < 4 || strlen(inputtext) > 16 || !strlen(inputtext)){ return ShowPlayerLoginDialog(playerid, gPlayerAccount[playerid]); new password[64]; strmid(password, inputtext, 0, strlen(inputtext), 255); Encrypt(password); OnPlayerRegister(playerid,password); } else { SendClientMessage(playerid, COLOR_YELLOW, "[!] "#C_WHITE" msg "); Kick(playerid); return 1; } }
if(dialogid == DIALOG_LOGIN+1) { if(response) { if(strlen(inputtext) < 4 || strlen(inputtext) > 16 || !strlen(inputtext)) { return ShowPlayerLoginDialog(playerid, gPlayerAccount[playerid]); } // <- We closed the brace here, freeing the next code from this ^ conditional statement new password[64]; strmid(password, inputtext, 0, strlen(inputtext), 255); Encrypt(password); OnPlayerRegister(playerid,password); } else { SendClientMessage(playerid, COLOR_YELLOW, "[!] "#C_WHITE" msg "); Kick(playerid); } }
first Ask for understanding. |
if(dialogid == DIALOG_LOGIN+1)
{
if(response)
{
if(strlen(inputtext) < 4 || strlen(inputtext) > 16 || !strlen(inputtext)){
return ShowPlayerLoginDialog(playerid, gPlayerAccount[playerid]);
new password[64];
strmid(password, inputtext, 0, strlen(inputtext), 255);
Encrypt(password);
OnPlayerRegister(playerid,password);
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "[!] "#C_WHITE" msg ");
Kick(playerid);
}
}
}
if(dialogid == DIALOG_LOGIN+1)
{
if(response)
{
if(strlen(inputtext) < 4 || strlen(inputtext) > 16 || !strlen(inputtext)){
return ShowPlayerLoginDialog(playerid, gPlayerAccount[playerid]);
new password[64];
strmid(password, inputtext, 0, strlen(inputtext), 255);
Encrypt(password);
OnPlayerRegister(playerid,password);
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "[!] "#C_WHITE" msg ");
Kick(playerid);
}
}