Message repeats itself over and over.
#10

Yes, it gets repeated because you are sending the message under check for every house. Create a variable, let's say id, set it to -1 and go through the loop. If the player is near the house, change the id. After the loop check if the id is equal to -1, if it is, send the message that player is not near any house.
Reply


Messages In This Thread
Message repeats itself over and over. - by OMonger - 15.08.2015, 16:32
Re: Message repeats itself over and over. - by Dziugsas - 15.08.2015, 16:34
Re: Message repeats itself over and over. - by OMonger - 15.08.2015, 16:36
Re: Message repeats itself over and over. - by Dziugsas - 15.08.2015, 16:38
Re: Message repeats itself over and over. - by OMonger - 15.08.2015, 16:46
Re: Message repeats itself over and over. - by Dziugsas - 15.08.2015, 16:50
Re: Message repeats itself over and over. - by OMonger - 15.08.2015, 17:08
Re: Message repeats itself over and over. - by Dziugsas - 15.08.2015, 17:12
Re: Message repeats itself over and over. - by OMonger - 15.08.2015, 19:04
Re: Message repeats itself over and over. - by dominik523 - 15.08.2015, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)