19.07.2014, 05:16
Quote:
|
Split it in to includes, not in to filterscripts.
Anyway, most of the time variables shouldn't be shared between different parts of your script. Your vehicles system has variables, your business system has variables - there is no need for the vehicles system to have access to the variables from the business system, and vice-versa. This is called separation of concerns, and has been discussed at length in almost all programming circles, including this one in the "Discussion" subforum. It makes me physically cringe when people just have one huge "PlayerInfo" variable (not just because it is a terrible name) that is global and contains literally everything. You should have one variable for a player's vehicle's data, one for their businesses, one for their messages etc; with each one isolated from the others. |


