Finance ministers from the world's top 20 economies have pledged to take whatever action is necessary to tackle the global credit slump.