The reason you get no error messages is because you filter them:
Code:

If AddPrinterConnection ("\\onid-print\scf_main") = 0
? "Added printer connection...."
Endif



If you change this to something like this:
Code:

If AddPrinterConnection ("\\onid-print\scf_main") = 0
? "Added printer connection...."
Else
? "Error number : " + @Error
? "Error message: " + @SError
Endif


It should return an error, on failure
_________________________
It's better to have scripted and died, then to never have scripted at all