Jump to content

About arrays


Recommended Posts

Posted

Hi everyone,

I wanna know if...

  
  
table = {} 
  
  
table[player] = true -- for example 
  
  

if that data is going to be removed when the player quits or it will be saved.

WRS( World Racing Server) [server] = 8%

Posted

Every time a player joins, his userdata changes, the data will still be on the table, but the player can't access to it.

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.

Posted

So instead of saving data using the userdata player, I can

  
  
table = {} 
  
getAccountName(account) 
  
table[accountName] = true 
  
  

Right?

WRS( World Racing Server) [server] = 8%

Posted

Exactly, you could also use the player serial instead.

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.

Posted

Great, and my last question :

An array data, resets ( or delete/elimina xD) when you quit or refresh your server?

WRS( World Racing Server) [server] = 8%

Posted

You mean if the arrays/tables are lost when you restart the server? if so then of course.

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