I making a teleport command that only DM can see this is what I got:
mob
if(IsDM(usr))
else usr << "You're not a DM!"
verb/teleport(mob/M as mob in world)
if(IsDM(usr)) usr.loc = M.loc
proc/IsDM(mob/myMob)
if(myMob.ckey == "Darkness") return 1
else usr << "You're not a DM!"
but there is 3 errors...please help
ID:151181
![]() Feb 23 2001, 8:43 pm
|
|
Ok, now im haveing more trouble :(
Code: mob/Avatar/verb Teleport() (mob/M as mob in world)//line 363 if(IsDM(usr)) usr.loc = M.loc//line 364 Errors: Code.dm:363:error::missing ()'s or invalid return type Code.dm:364:error:if :missing ()'s or invalid return type Code.dm:364:error::missing ()'s or invalid return type Thanx Shane |
On 2/24/01 2:48 am Shane wrote:
Ok, now im haveing more trouble :( You're sure you can't find those errors yourself? They are quite obvious... mostly. =) (I'll give you a hint... you have weird indentation, and something there is missing the word 'for'.) |
Keep proc/IsDm as is, but replace the above with:
mob
verb/teleport(mob/M as mob in world)
if(IsDM(usr)) usr.loc = M.loc