Hi Leute!
Ich habe eine Uhr mit GameMaker erstellt.
Ich hab das ins Draw-Event so gemacht:
Alles anzeigen
Jetzt wird aber folgende Fehlermeldung angezeigt:
ERROR in
action number 1
of Draw Event
for object object0:
Error in code at line 19:
draw_text(32,32,current_year + ":" + current_month + ":" + current_day + ", Mittwoch")
at position 37: Wrong type of arguments to +.
Was ist falsch?
Hab ich zu oft das +-Zeichen verwendet oder was ist falsch?
Bin hilflos!!!
Ich habe eine Uhr mit GameMaker erstellt.
Ich hab das ins Draw-Event so gemacht:
GML-Quellcode
- {
- var weekday;
- weekday = current_weekday;
- if (weekday = 1)
- {
- draw_text(32,32,current_year + ":" + current_month + ":" + current_day + ", Sonntag")
- }
- if (weekday = 2)
- {
- draw_text(32,32,current_year + ":" + current_month + ":" + current_day + ", Montag")
- }
- if (weekday = 3)
- {
- draw_text(32,32,current_year + ":" + current_month + ":" + current_day + ", Dienstag")
- }
- if (weekday = 4)
- {
- draw_text(32,32,current_year + ":" + current_month + ":" + current_day + ", Mittwoch")
- }
- if (weekday = 5)
- {
- draw_text(32,32,current_year + ":" + current_month + ":" + current_day + ", Donnerstag")
- }
- if (weekday = 6)
- {
- draw_text(32,32,current_year + ":" + current_month + ":" + current_day + ", Freitag")
- }
- if (weekday = 7)
- {
- draw_text(32,32,current_year + ":" + current_month + ":" + current_day + ", Samstag")
- }
- draw_text(32,112,current_hour + ":" + current_minute + ":" + current_second)
- }
Jetzt wird aber folgende Fehlermeldung angezeigt:
ERROR in
action number 1
of Draw Event
for object object0:
Error in code at line 19:
draw_text(32,32,current_year + ":" + current_month + ":" + current_day + ", Mittwoch")
at position 37: Wrong type of arguments to +.
Was ist falsch?
Hab ich zu oft das +-Zeichen verwendet oder was ist falsch?
Bin hilflos!!!


Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von Tobi ()