04.04.2018, 05:33
Quote:
That may have fixed for the problem for now but you left a flaw in your logic.
Example: Green - message sent, red - message not sent: DiscordStats[0] = true DiscordStats[1] == true DiscordStats[2] == true DiscordStats[3] == true DiscordStats[4] == false // loop stops because you return 0; DiscordStats[5] == true DiscordStats[6] == true People from ID 4 (in this example) and onwards will not receive the message as the loop will have been stopped as ID 4 had their settings set to false and you returned 0. Use the code jlalt provided to avoid this. |