How can a make a list in a script? I am trying to make an admin commands feature to check if the player is the allowed player, how can I list the allowed players?
local AllowedPlayers = ("zomspi","example")
The "," doesn't work? Thanks!
How can a make a list in a script? I am trying to make an admin commands feature to check if the player is the allowed player, how can I list the allowed players?
local AllowedPlayers = ("zomspi","example")
The "," doesn't work? Thanks!
I believe you are trying to create a table! To do this replace the '( )' with '{ }' e.g.
local AllowedPlayers = {"zomspi","friend"}
Here is the wiki Tables
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Thanks!
No problem!