Quote:
Originally Posted by Jiroxys7
well that seemed to have fixed a few things, however client.playerprofession = profession1 didnt seem to save it under the player's flags. so its now set to "0" instead of "profession1" (i have another GUI thats now displaying the profession as "0")
|
I'm sorry, I just skimmed over the script. It should have been:
PHP Code:
client.profession = "profession1";
However, salesman's suggested method is the way to go.
Just for reference, when you check or assign literal strings, you need to use quotes.
For example, the first 'if' statement should have been:
PHP Code:
if (this.selectedprofession == "profession1")