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

Quote:
Originally Posted by Vince
Посмотреть сообщение
If you want a random 5 digit number you don't have to call random 5 times ... That's just silly. Simply use random(100000) to generate a number between 0 and 99999. Then display using "%05d". And since "Kod" (whatever that may mean) appears to be an integer, all you need is:
pawn Код:
PlayerInfo[id][pKod] = random(100000)
Thank you.
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)