C'mon Gatorules, I think the beginners in the DBPro Newcomer's Corner are having a hard enough time getting DBPro to work without you throwing your C++ code at them. Look, a prime example of what I'm talking about, SAAB Driver.
SAAB Driver, the code Gatorules posted was a function definition. Translated into DBPro, it's this:
function moveobject(id,direction#,speed#)
obx#=object position x(id)
oby#=object position z(id)
x#=sin(direction#)*speed#
z#=cos(direction#)*speed#
position object id,obx#+x#,object position y(id),obz#+z#
endfunction
And if you want to call the function like that, you'd do:
if leftkey()=1 then moveobject(1,10,10)