|
By:
It will be caused by the scope of the variables
Look at the line where it is failing and then look for where the variables on that line are declared and assigned values, its likely that they are out of scope when you move this function to a stand alone module. |
|
By:
Thanks Escapee, turned out I just needed to load the Betfait API Framework outside this new function and all works well again!
|