07.06.2015, 10:16
Hey guys. I made random code number for admin login, and the problem is that randomator generates just one number instead of 5 field.
CODE:
Should i use "KOD" five times at the end ?
CODE:
PHP код:
new randomkod = random(9);
format(poruka,sizeof(poruka),"{FFFFFF}Cestitamo. Postavljani ste na administracijsku poziciju levela: "COLOR_WG"%d.{FFFFFF}\nTitulu vam je dodjelio vlasnik"COLOR_ZUTA" %s.\n{FFFFFF} Zelimo vam svu srecu u nasem ADMIN teamu.\n\n"COLOR_CRVENA"[VAZNO]:{FFFFFF}\nDolje navedeni kod zapisite/zapamtite jer cete prilikom logiranja morati to upisati.\n%d%d%d%d%d",level,name2,KOD);
strcat(statut,poruka);
PlayerInfo[id][pKod] = format(KOD,sizeof(KOD),"%d%d%d%d%d",randomkod,randomkod,randomkod,randomkod,randomkod);