You should subtract 1 froom cc at the same time as you add 1 to y... So...
while (!place_meeting(x,y+1,ob_parentbuilding) and cc>=0) { y+=1; cc-=1; }
You create the counter, but donīt actually use it for anything, and so it will ALWAYS be greater than 0 (if vsp>0 then cc must be at least 1) so the "while" is an infinite loop as it is always checking the cc variable. So count it down as I show above...
Ah, I see it now. It's working now and not crashing, thank you very much for the help.



Find content
Male
