ID:168087
 
here is the section of code that comes up with the error:
__________________________________________________________

// tell if two items are alike
proc/IsAlike(obj/O)
if(!O || type != O.type || !count || !O.count || \
contents.len || O.contents.len) return 0

for(var/V in vars) <<<[ERROR]

if(vars[V] != O.vars[V])
if(V in builtin) continue
return 0
return 1
__________________________________________________________

error::invalid expression
__________________________________________________________

how can I get it to work?

here is where I got it >> http://www.byondscape.com/ascape.dmb/LummoxJR.2005-0506/
use dm tags
In response to Rky_nick
Rky_nick wrote:
use dm tags

im a noob.
what are dm tags?
In response to Diggsey
x = <
z = >
xdmz
x/dmz
In response to Rky_nick
Rky_nick wrote:
x = <
z = >
xdmz
x/dmz

err cant u speak instead of writing in code all the time!
In response to Diggsey
To use DM tags do:
[insert code here]
In response to Kalzar
ok

obj
var/count = 0 // 0 means not groupable; 1+ is groupable

proc/Update()
if(count)
// change suffix
suffix = (count>1) ? "[count]x" : null
// consider changing name to a plural here too

// tell if two items are alike
proc/IsAlike(obj/O)
if(!O || type != O.type || !count || !O.count || \
contents.len || O.contents.len) return 0
for(var/V in vars)
if(vars[V] != O.vars[V])
if(V in builtin) continue
return 0
return 1
In response to Diggsey
The code looks good as-is. Are you sure it wasn't merely typed in incorrectly, or not inserted in your code with the correct indentation?

Lummox JR