I've answered this for you before - You have braces out of place, missing your CVar pointer, a random line that has no purpose at all, haven't created your global variables, defining new variables in a loop, inefficient checks, and your function is never called.
If you want me to help you with this issue ... again ... then explain exactly how you want it to work.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.