Das liegt anscheinend am printf, gibt irgendwie immer 0 aus.

Probier mal das hier:

Code:
var test;

void main()
{
	error(str_for_num(NULL,test));
}