Script engine doesnt properly handle nested square brackets

Forum Archive - from http://theuniversal.net
Locked
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Script engine doesnt properly handle nested square brackets

Post by zaroba »

Software:Universal Client
Version Number:minor script var bug
________________________________________________________________________
Location
minor script var bug
________________________________________________________________________
Description:

Code: Select all

Event( "&command" "test")
	{
	$gplayervar39=40
	$gplayervar40=42
	*say $playervar[$gplayervar39]
	$gplayervar42=50
	*say $gplayervar[$gplayervar[$gplayervar39]]
	}
in the 2nd say, the last ] is displayed in the say command.
works the same if that 2nd bracket is omitted from the line, but that leaves an open argument. two [, but only one ]

or is it supposed to work like that?
________________________________________________________________________
Steps to Replicate:
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

bump
Locked