Ludiq
Member
Create event:
Pieces = get_integer_async("Products created?", "");
val = floor(Pieces/6);
val2 = frac(Pieces/6)*6;
Draw event:
draw_text(x,y,"Pieces per person " + string(val));
draw_text(x+20,y+20, "Pieces for redistribution " + string(val2));
The problem is for example when I input 3247 the program should say Pieces per person 541 and Pieces for redistribution 1 but its showing 0 and 0 for both values. The program was working fine with get_integer function but when I put it on my phone and ran it it said get_integer is deprecated and to change it to get_integer_async. I have done it but its not working. I have looked at the manual for it but I dont understand what I need to do. Can someone please help me?
Pieces = get_integer_async("Products created?", "");
val = floor(Pieces/6);
val2 = frac(Pieces/6)*6;
Draw event:
draw_text(x,y,"Pieces per person " + string(val));
draw_text(x+20,y+20, "Pieces for redistribution " + string(val2));
The problem is for example when I input 3247 the program should say Pieces per person 541 and Pieces for redistribution 1 but its showing 0 and 0 for both values. The program was working fine with get_integer function but when I put it on my phone and ran it it said get_integer is deprecated and to change it to get_integer_async. I have done it but its not working. I have looked at the manual for it but I dont understand what I need to do. Can someone please help me?