Thanks for updating your post.
Quote:
Originally Posted by pig132
As to the community name / account thing, I thought using player.account was inefficient when the community name stuff came out? I could be wrong though, just something I read a while ago.
|
The idea is that the account is an internal identifier used
only by scripts (and developers/staff). Players should never see another player's account, only their community name and nick name.
The problem is that community names can change, so you shouldn't rely on them. For example, if you have a bank system which uses a database NPC or SQL to store the player's balance based on their community name, that player will lose all their money if they get a new community name.
Similarly, if you assign privileges based on community name, another player could take the previously used community name of the trusted player (which is no longer in use) and gain unauthorized access.
Almost every user management structure in existence uses IDs (accounts) instead of display names for identification. These forums do as well; if you look at my profile, you'll see the URL ends in "?u=2568", which is my user ID. If Darlene were to rename my forum display name (cbk1994), I would keep the same ID. If it was based off of forum display name instead of ID, every instance of cbk1994 would have to be changed to the new value, and old links to my profile (?u=cbk1994) would stop working. It's the same general concept.
Quote:
And on the styling, for me its really just preference, its really easy for me to read/edit this way
|
The problem isn't your position on the curly brace war but rather the inconsistency (you've fixed it now). It's always good to pick one style and keep it throughout a script.