Fix problem when samp was activated : some variables were not properly initialized after code refactoring.