04.11.2018, 23:08
(SPANISH)
Solucionado de la siguiente manera.
WHERE
Solucionado de la siguiente manera.
Code:
new NumeroRandom, strx[200], count; do { NumeroRandom = RandomEntre(10000,99999); format(strx, 200, "SELECT * FROM `PHONE` WHERE `PHONE_NUMBER` = %d", NumeroRandom); new Cache:result = mysql_query(SMF_DATABASE, strx, true); cache_set_active(result); cache_get_row_count(count); } while(count > 1);
Code:
RandomEntre(min, max) { // Crйditos a y_less new rand = random(max-min)+min; return rand; }