Best way to make sure this number isn't the same as any others?
#1

pawn Код:
for(new i = 0; i < MAX_FURNI; i++)
        {
            if(FurniCode[i] == furnic)
            {
             
            }
I'm not very familiar with while loops and I realise that a for one is not adequate, but that for loop kind of explains what I need.

Basically.

Furnicode is 6 random digits, I need to make sure that when a new code is allocated it doesn't match any other code in the server.
I need it to keep repeating until that becomes the case

What is the best way to do this?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)