For comparision, you need to be using == and not =.
Also (not related to your problem), setstring is GS1 and deprecated. You should be using something like this instead:
PHP Code:
client.playerprofession = profession1;
And lastly, welcome to the scripting forum

.