Ok, stepping back a bit
Search through ANY cns file for the line you have copied into that post
p2bodydist X:%lf,p2bodydist Y:%lf,AI:%d,Var:%d,Var:%d
When you find it, replace %lf with %f
That will fix the problem. Alternatively, delete the entire state controller that has that line in it,
[state]
type
trigger
params
text
The whole thing, it's not providing any gameplay elements, just a graphical display of certain values in debug.