Hallo,
ingend wie macht nicht der Code was er soll:
Alles anzeigen
Nun es soll zu eine bestimmten Urzeit dunkel sein, also von 20-3 uhr.
Aber auch wenn es 20 Uhr ist wird es nicht gemacht.
MfG Henrik1235
ingend wie macht nicht der Code was er soll:
GML-Quellcode
- var time_ok;
- time_ok=1;
- if current_hour= 20
- {
- time_ok=0
- }
- if current_hour= 21
- {
- time_ok=0
- }
- if current_hour= 22
- {
- time_ok=0
- }
- if current_hour= 23
- {
- time_ok=0
- }
- if current_hour= 0
- {
- time_ok=0
- }
- if current_hour= 1
- {
- time_ok=0
- }
- if current_hour= 2
- {
- time_ok=0
- }
- if current_hour= 3
- {
- time_ok=0
- }
- if current_hour= 4
- {
- time_ok=0
- }
- if time_ok= 1
- {
- draw_set_alpha(0.5)
- draw_set_color(c_black)
- draw_rectangle(view_xview,view_yview,640,480,false)
- draw_set_alpha(1)
- }
Nun es soll zu eine bestimmten Urzeit dunkel sein, also von 20-3 uhr.
Aber auch wenn es 20 Uhr ist wird es nicht gemacht.
MfG Henrik1235