Your issue is that your first parameter in "CheckSprCollision()" is not an actual spriteID, the first parameter your trying to give is actually a vector.
The vector your using is an array of SPRITE objects (right?), well, in the struct, did you remember to put in a variable that contains the Id of the sprite?
So add that number (if you haven't), and use it like this:
if (sprite[s].isvisible && CheckSprCollision (sprite[s].spriteID, px, py))
P.S.:
I see that your new to BBCode. If your posting a C++ code snippet, wrap it around the "code" tag. You should see the button above the post message box.
http://www.darkgdk.us/ <- You can now submit pages, upload images, yet were lacking content. We need your help!