B
bilouw
Guest
Hello guys,
I have code that runs fine on VM compiler. I juste found the YYC compiler, so i tried my code on it. It don't seems to have errors, but some behaviours are strange. For example, at the beginning of my game, i get the room index to spawn in a .sav file. So i read the value in a ds_list like this :
the "r" variable is equal to 3 (number, not string).
Then, i use room_goto() function like this :
I don't know why, it throw me an error :
I checked, the "r" variable is a number and it works fine with VM compiler. I tried, the real() and int64() to cast "r" variable to integer again. If i do this, the error is not anymore here but it doesn't go in the room with the id 3 (the value of r), but the first room instead ...
Do you know why the YYC compiler doesn't consider this variable as a number?
Thanks.
I have code that runs fine on VM compiler. I juste found the YYC compiler, so i tried my code on it. It don't seems to have errors, but some behaviours are strange. For example, at the beginning of my game, i get the room index to spawn in a .sav file. So i read the value in a ds_list like this :
Code:
var r = saveinfo[? "checkpoint_room"];
Then, i use room_goto() function like this :
Code:
room_goto(r);
Code:
room_goto argument 1 incorrect type (undefined) expecting a Number (YYGI32)
Do you know why the YYC compiler doesn't consider this variable as a number?
Thanks.