Page 1 of 1

'sprintf' error

Posted: Sat May 14, 2011 6:36 am
by Mushroomstamp
When switching to a repair waypoint, I was getting something like;
rom\functions.lua:953: Bad argument #3 to 'sprintf' <got nil>

Code: Select all

	<onLoad>
	changeProfileOption("INV_AUTOSELL_NOSELL_DURA", 150)	
	changeProfileOption("INV_AUTOSELL_NOSELL_STAT", XII)
	</onLoad>
Deleting the stat line fixed it, but I'm hoping someone can tell me why?

Re: 'sprintf' error

Posted: Sat May 14, 2011 7:01 am
by rock5
Try,

Code: Select all

changeProfileOption("INV_AUTOSELL_NOSELL_STAT"," XII")