Loop problem
#6

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
Remove 'return 0;'

Here is what is happening.
  • Loop starts at zero.
  • ID 0 is admin, and the code continues to the clientmessage code.
  • The clientmessage code is run, and the loop stops running because returning a value instantly stops a block of code.
Ah, there's the solution. Thanks for your help.

I actually had to put return 0; there to prevent the text from going into the main chat, but had put it in the wrong place. Thanks for the help.
Reply


Messages In This Thread
Loop problem - by DBan - 08.07.2012, 10:35
Re: Loop problem - by clarencecuzz - 08.07.2012, 10:45
Re: Loop problem - by DBan - 08.07.2012, 10:58
Re: Loop problem - by Slappybay - 08.07.2012, 11:02
Re: Loop problem - by ReneG - 08.07.2012, 11:05
Re: Loop problem - by DBan - 08.07.2012, 11:09
Re: Loop problem - by clarencecuzz - 08.07.2012, 11:09
Re: Loop problem - by Vince - 08.07.2012, 11:09
Re: Loop problem - by ReneG - 08.07.2012, 11:11
Re: Loop problem - by DBan - 08.07.2012, 11:16

Forum Jump:


Users browsing this thread: 1 Guest(s)