28.12.2009, 21:55
ah, nice solution ![Smiley](images/smilies/smile.png)
but beware: your code above may confuse the compiler, maybe while running the script:
its checking first if the condition ==0, then ==1. at the last "else if" you check for <=2, thats done before at the ==0 and ==1, both matched. so the last "else if" gets called alyways.
i suggest you to write "else if (PlayersInBoxRing[i] == 2)". iam sure it was a typo hehe...
![Smiley](images/smilies/smile.png)
but beware: your code above may confuse the compiler, maybe while running the script:
its checking first if the condition ==0, then ==1. at the last "else if" you check for <=2, thats done before at the ==0 and ==1, both matched. so the last "else if" gets called alyways.
i suggest you to write "else if (PlayersInBoxRing[i] == 2)". iam sure it was a typo hehe...