[A-System] Random code for login help.
#1

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:

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); 
Should i use "KOD" five times at the end ?
Reply


Messages In This Thread
[A-System] Random code for login help. - by NoDi522 - 07.06.2015, 10:16
Re: [A-System] Random code for login help. - by shadowdog - 07.06.2015, 10:20
Re: [A-System] Random code for login help. - by NoDi522 - 07.06.2015, 10:28
Re: [A-System] Random code for login help. - by Vince - 07.06.2015, 11:08
Re: [A-System] Random code for login help. - by NoDi522 - 07.06.2015, 12:55
Re: [A-System] Random code for login help. - by JaydenJason - 07.06.2015, 13:48

Forum Jump:


Users browsing this thread: 1 Guest(s)