Bugfixes for SA:MP functions