The function LOADSPRITEMEM does not like values as absolute numbers, gives an error at compile runtime
Works:
ok=LOADSPRITEMEM("myfile.jpg",w,h,pix[])
Error:
ok=LOADSPRITEMEM("myfile.jpg",2000,1000,pix[])
Thats because the second and third parameters are passed size of the sprite (width and height), and of course, a value can't be stored in an fixed value...
it's BYREF - you must pass a referene here that will tell you the size of the loaded image.