KungFuCharlie
Member
Good idea but a few pointers for you...
1. Your use of exitWith {} could lead to undefined behavior as per http://community.bistudio.com/wiki/exitWith. It is definitely not a good idea to use it the way you are using it within this script. It is for breaking out of loops... not exiting scripts.
2. Keep variables and comments in one language; don't mix.
3. Follow the standard conventions in terms of variable naming. In some cases you use proper camel case (_playerASL) and in others you don't (_Hospitalfound). Follow the same convention so it isn't painful to look through your code.
4. Don't use 1 and 0 for boolean operations; use true and false instead. Boolean comparisons are typically faster than numerical comparisons... Thus less server load.
1. Your use of exitWith {} could lead to undefined behavior as per http://community.bistudio.com/wiki/exitWith. It is definitely not a good idea to use it the way you are using it within this script. It is for breaking out of loops... not exiting scripts.
2. Keep variables and comments in one language; don't mix.
3. Follow the standard conventions in terms of variable naming. In some cases you use proper camel case (_playerASL) and in others you don't (_Hospitalfound). Follow the same convention so it isn't painful to look through your code.
4. Don't use 1 and 0 for boolean operations; use true and false instead. Boolean comparisons are typically faster than numerical comparisons... Thus less server load.