new number[MAX_PLAYERS];
new myNumber = 5;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (myNumber == number[i])
{
myNumber = number[i] + 1;
}
}
Maybe this will help. But as Vince said.... we need more info to make best answer.
I'm was not "pawning" for a few years, but I'm more interested in java now, so maybe you define variables differently in pawno. I dont remember
Well this should "scan" for all players and their variables that you want to compare your number with, and if their number equeals to your number, it then your number will be incremented by 1. That your number will no longer be same as others number. And if next players number will be same again, it will increment by 1 again and so on until the end where your number will be different than number of any player. If that is how you wanted it to work.
You just have to define what to put in variables. I put number 5 as myNumber. Numbers of others are not defined yet, but it is not neccessary I think. Just to show.