06.08.2010, 20:30
Hi all
I'm trying to write a script to check whether or not the player's name is earl when they send the '/admin' command.
Just for simplicity & evaluation purposes..
Here it is:
http://pastebin.com/KaaUebz4
My problem is when I go to compile, it returns an error stating that the variable 'string' must be indexed.
I don't know how to index it... (I'm really starting to regret learning a language so loose on variables as my first >.<)
Nor do I know why it needs to be indexed if it's been formatted to a single line by the format function.
Any help or tips/hints are greatly appreciated TIA
I'm trying to write a script to check whether or not the player's name is earl when they send the '/admin' command.
Just for simplicity & evaluation purposes..
Here it is:
http://pastebin.com/KaaUebz4
My problem is when I go to compile, it returns an error stating that the variable 'string' must be indexed.
I don't know how to index it... (I'm really starting to regret learning a language so loose on variables as my first >.<)
Nor do I know why it needs to be indexed if it's been formatted to a single line by the format function.
Any help or tips/hints are greatly appreciated TIA