Quote: "im shrr it was somtihng to do with not creating object 2 before calling the function."
If you didn't create any object with the object number 2 before calling the 'SC_SetupObject 2,0,0' you'll of course get an error. The first number is the object number you wan't to use in sparkys, and if you haven't created any object with the number you're using when calling the command you get an error, because the object does not exist. (The second one is what collision group you wan't it to belong to and the third number is what kind of collision you get.)
Working code:
make object sphere 2, 7
SC_SetupObject 2, 0, 0
end
delete memblock 1
I create the object and then call the 'SC_SetupObject' command to be able to use in with sparkys. Then I end the progrem and then I use the 'delere memblock' command to make so there will exist at last one memblock in the program (which is also why I called the command 'end', so I wouldn't get an error message because I haven't used the command 'make memblock' to create the memblock).
I hope this helps.