ID:149911
Jan 29 2002, 6:12 am
|
|
In my new game im making i want it so that only 4 people can join i did that now im trin to make it so that then thay join thay join a team blue black red green now if your the firt person to join u join blue 2nd green and so on tell 4 i did it butit makes it so that u join all the teams when u press join team ):
|
Jan 29 2002, 6:19 am
|
|
It sounds like your team selection proc isn't stopping when it finds the right team. Could you post the code?
|
In response to Shadowdarke
|
|
sorry i got rid of it becasue it was messing up my game when i was trin to fix it will this is what it was like
if green = 0 usr "u joined green" usr.green = 1 else rerturn if blue= 0 usr "u joined blue" usr.blue= 1 else rerturn and so on -_- |
In response to Rollerc
|
|
Rollerc wrote:
if green = 0 Look carefully at what's happening there. Those else statements tell it to return if green is already taken. if gren isn't taken, it will put you on green, then proceed to check blue and so on, setting each value. What you want is if green = 0 usr << "youu joined green" usr.green = 1 return // stop here, we have the team if blue = 0 usr << "You joined blue" usr.blue = 1 return // stop here, we have the team and so on. I'm not sure why you storing them in mob(usr) vars. Your team variables are rather confusing. |
In response to Shadowdarke
|
|
is thare a better way to do it??
|