Jump to content

Variable for the player


Neproify

Recommended Posts

Posted

Hello. I create my gamemode and I spotted a problem. In the register and login system I use the MySQL. How to create variable for the player. This variable stores a score, money, etc.

Posted

You can use tables or element data like:

setElementData ( playerElement, "money", 500 ) 

and then gain it with

  
getElementData ( playerElement, "money" ) 

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...