Stuck on variables.. again... Indexing arrays?
#1

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
Reply


Messages In This Thread
Stuck on variables.. again... Indexing arrays? - by plutoniumman - 06.08.2010, 20:30
Re: Stuck on variables.. again... Indexing arrays? - by JaTochNietDan - 06.08.2010, 20:35
Re: Stuck on variables.. again... Indexing arrays? - by plutoniumman - 06.08.2010, 20:40

Forum Jump:


Users browsing this thread: 2 Guest(s)