Hey, so, i wanted a function that rounds everything to a multiple of 50 upwards, tried first with floatround, well, it did not work, then did it with string and worked perfecty with numbers within 1 - 1.000 and i don't know why but it works brilliant with numbers above 10.000, but when i try to round 1444 and 1877 it throws a crashdetect error.
i put this code in ongamemodeinit to test it
printf("redondear 89");
temp = redondear_precio(89);
printf("redondeado quedo en %d", temp);
printf("------------------------------------------");
printf("redondear 123");
temp = redondear_precio(123);
printf("redondeado quedo en %d", temp);
printf("------------------------------------------");
printf("redondear 789");
temp = redondear_precio(789);
printf("redondeado quedo en %d", temp);
printf("------------------------------------------");
printf("redondear 1444");
temp = redondear_precio(1444);
printf("redondeado quedo en %d", temp);
printf("------------------------------------------");
printf("redondear 1877");
temp = redondear_precio(1877);
printf("redondeado quedo en %d", temp);
printf("------------------------------------------");
printf("redondear 10489");
temp = redondear_precio(10489);
printf("redondeado quedo en %d", temp);
printf("------------------------------------------");
printf("redondear 16720");
temp = redondear_precio(16720);
printf("redondeado quedo en %d", temp);
printf("------------------------------------------");
i put the code and the rest of the quetion below