ID:174522
 
ok for picking up objects, say I make 2 kinda of gold 100 and 10 ok I want both of them to say pick up when your by them... how do I make both of them be pick up without getting the duplicate error?
also I was looking over the messages and I grabbed this who code..


client/verb
who()
var/mob/M
usr<< "People On:"
for(M in world)
if(M == usr) continue
if(M.key) usr << M.key


it gives me the errors


game.dm:22:error:M :invalid proc definition
game.dm:25:error:if :invalid proc definition
game.dm:25:error::invalid proc definition
game.dm:26:error::invalid proc definition


what am i doing wrong on this?
In response to Majinveku
Majinveku wrote:
also I was looking over the messages and I grabbed this who code..


client/verb
who()
var/mob/M
usr<< "People On:"
for(M in world)
if(M == usr) continue
if(M.key) usr << M.key


it gives me the errors


game.dm:22:error:M :invalid proc definition
game.dm:25:error:if :invalid proc definition
game.dm:25:error::invalid proc definition
game.dm:26:error::invalid proc definition


what am i doing wrong on this?

It's all in the spaces.
client/verb
who()
var/mob/M
usr << "People On:"
for(M in world)
if(M == usr)
continue
if(M.key)
usr << M.key


that should proablaly do it.