Jump to content

Serverside and Client Side Script variable duplication


GhostXoP

Recommended Posts

Posted

Say i have 10 players on line, with a client side and server side script, each script contains one variable called ScriptVarCLIENT and ScriptVarSERVER

correct me if im wrong (if i am, tell me, its the question basically), but would that mean there are 10 ScriptVarCLIENT variables (Per client, there is one duplication of this variable), and only 1 ScriptVarSERVER Variable? (For the server, no duplication only one variable) ?

Posted

If you create a variable server sided, it'll be global, for every player, but if you create it client side, it'll be unique for each client.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...