12.07.2018, 10:02
Hi, if you try to use the registered players command, you will get an error saying that you are not registered. How can i solve the problem ?
Код:
CMD:changeques(playerid, params[])
{
if (eUser[playerid][e_USER_SQLID] != 1)
{
SendClientMessage(playerid, COLOR_TOMATO, "Only registered users can use this command.");
return 1;
}
new list[2 + (sizeof(SECURITY_QUESTIONS) * MAX_SECURITY_QUESTION_SIZE)];
for (new i; i < sizeof(SECURITY_QUESTIONS); i++)
{
strcat(list, SECURITY_QUESTIONS[i]);
strcat(list, "\n");
}
ShowPlayerDialog(playerid, CHANGE_SEC_QUESTION, DIALOG_STYLE_LIST, "Change account security question... [Step: 1/2]", list, "Continue", "Cancel");
SendClientMessage(playerid, COLOR_WHITE, "[Step: 1/2] Select a security question. This will help you retrieve your password in case you forget it any time soon!");
PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
return 1;
}


