'client' was not declared in this scope. Please help!

Where is 'client' declared? If it is declared inside a function, are you trying to use it inside a different function? That would be "out of scope". If it is not declared at all, that would also be "out of scope".