I have now typed the matrix directly in the effect-string.
This works fine:
Code:
float4x4 matScale1 = float4x4(1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0);



But with this:
Code:
float mtlSkill1;

float4x4 matScale1 = float4x4(mtlSkill1,0,0,0,0,mtlSkill1,0,0,0,0,0,0,0,0,0,0);


I get an error: "'matScale1': initial value must be a literal expression".