Hi Pork,
What do you mean by "doesn't work"? buff not loaded? printf's output doesn't appear in the log? buff load not happening at the bar you want it to happen at?
As near as I can tell, buff is being loaded fine. You just can't see it when the log isn't active yet. If you take the "#" out, you should see the buff printf in the Zorro window.
If you need to have the buff printf show in the log, you'll need to hold off until the log is active, as Spirit says. Similarly if you need it at a particular bar.
I believe the reason your if(count==1) doesn't work is because it happens on the INITRUN when the log isn't active yet.
HTH.