Hi there!
Yes, the script call you used is wrong. The shortname of the parameter must be a string. You need to put it around quotes:
$gameActors.actor(1).addCParam("ddoor", 10)