How can i block random from giving the same value
#1

So how can i block the randomizer from setting the same value that another player already has?

here is the code:
pawn Код:
new banknumber = 10000 + random(15000);
Reply
#2

Use a loop to read all userfiles and their banknumber values. If their player variable matches bank number, add another random value ontop of the earlier value or return false.

Just an example of how you could do it.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)