0

my variables are not updating

https://code.sololearn.com/WdDbK0jHMlkW/?ref=app although the 24-"hour" clock i've made for a mini game is working, problem is that the day of the week isn't updating. i'm not really sure if I did anything wrong because there aren't any errors showing up for me.

15th Oct 2017, 12:26 PM
Kyle Christian Orilla
Kyle Christian Orilla - avatar
3 Antworten
+ 5
Seriously??? declare s0 and dc out side that function bro! also I'll give some story 0%4 = 0 1%4 = 1; 2%4 = 2; 3%4 = 3; 4%4 = 0; 5%4 = 1;
15th Oct 2017, 12:31 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 2
Haha and this is story that make your code easier to read Well I completly can't read your code 😑 https://code.sololearn.com/WY0E59c13Xzz/?ref=app
15th Oct 2017, 12:41 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 1
i.. i think i've had too much coffee that i forgot about scopes.. thank you.
15th Oct 2017, 12:33 PM
Kyle Christian Orilla
Kyle Christian Orilla - avatar