1) Your initial value for cspr is 0, but this is not a valid number for a sprite.
2) you are not changing the value of cspr in the loop so each time it is checking the same value
3) you are not changing the position of the cloned sprite
You need either;
- use a different value for cspr, then change this in the loop
- Add the loop index (x) to cspr to get a different value;
if getspriteexists (cspr + x ) = 0 then CloneSprite (cspr + x , spr)
Personally, I would use the loop index as the sprite value and position offset;
for cspr = 1 to 5
if getspriteexists (cspr) = 0 then CloneSprite (cspr, spr)
SetSpriteVisible (cspr, 1)
SetSpritePositionByOffset(cspr, 10 + 10 * cspr ,30)
next cspr