Welcome to the official SourceMM Support forum!
Please post coding questions to the SourceMM coding forum.
Also, before posting, please make sure that you have checked the documentation over at
http://www.sourcemm.net/ !
Happy posting!
__________________