sergeydrushko
Умник
как сделать чтоб вместо 6 символов было 4:
PHP:
stock PlayerShowCaptcha(playerid, CaptchaID) {
new string[64];
format(string, 8, "%c%c%i%c", 65+random(26), 65+random(26), 100+random(899), 65+random(26));
PlayerTextDrawSetString(playerid, Captcha_PTD[playerid][6], string);
for(new i; i < 7; i++) PlayerTextDrawShow(playerid, Captcha_PTD[playerid][i]);
SetPVarString(playerid, "Captcha", string);
SetPVarInt(playerid, "CaptchaID", CaptchaID);
ShowPlayerDialogEx(playerid, 23045, DIALOG_STYLE_INPUT, "Капча", "Введите код ниже", "Принять", "Отмена");
return 1;
}
