ID 0 bug
#5

Quote:
Originally Posted by AdamsLT
Посмотреть сообщение
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.
Thank you.
Reply


Messages In This Thread
ID 0 bug - by Exhibit - 03.04.2018, 14:44
Re: ID 0 bug - by jlalt - 03.04.2018, 14:50
Re: ID 0 bug - by Exhibit - 03.04.2018, 15:00
Re: ID 0 bug - by AdamsLT - 03.04.2018, 15:21
Re: ID 0 bug - by Exhibit - 04.04.2018, 05:33

Forum Jump:


Users browsing this thread: 1 Guest(s)