Line split long osditem breaks script

Forum Archive - from http://theuniversal.net
Locked
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Line split long osditem breaks script

Post by morbydvisns »

Software:Universal Client
Version Number:
________________________________________________________________________
Location

________________________________________________________________________
Description:
osdaddat (osdexitbutton,$dirButtonSet[$xPos],$dirButtonSet[$yPos],
$dirButtonSet[$width],$dirButtonSet[$height],$dirButtonSet[$name],$dirButtonSet[$text])

Only works as one full line instead of broken between 2.
________________________________________________________________________
Steps to Replicate:
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

this is part of the language spec.. each line is a separate command and cannot be split up. Otherwise we have to have ; at the end of lines and things, which is just unpleasant :)
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Post by morbydvisns »

ok i figured since arrays can be split lines, everything else should be =)
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

arrays are special :)
Locked