ID:262300
 
mob/GM/Give(mob/M as mob in world)
M.verbs += 'Give GM'
M << "You have recived GM Powers!"
<'DM'>

I have some trouble with this code....
it keeps giving this error :

loading testwereld.dme
testwereld.dm:250:error: missing left-hand argument to <.

testwereld.dmb - 1 error, 0 warnings (double-click on an error to jump to it)

can anyone help?
( this code isn't mine and I'm new to coding and I have
NO CLUE what I should do)
( and yes I'll read the guide !! )
O-matic wrote:
mob/GM/Give(mob/M as mob in world)
M.verbs += 'Give GM'
M << "You have recived GM Powers!"
<'DM'>

I have some trouble with this code....
it keeps giving this error :

loading testwereld.dme
testwereld.dm:250:error: missing left-hand argument to <.

testwereld.dmb - 1 error, 0 warnings (double-click on an error to jump to it)

can anyone help?
( this code isn't mine and I'm new to coding and I have
NO CLUE what I should do)
( and yes I'll read the guide !! )

Ummm, Where is line 250?
In response to Green Lime
O-matic wrote:
mob/GM/Give(mob/M as mob in world)
M.verbs += 'Give GM'
M << "You have recived GM Powers!"
<'DM'> <-------- this is line 250
In response to O-matic
O-matic wrote:
O-matic wrote:
mob/GM/Give(mob/M as mob in world)
M.verbs += 'Give GM'
M << "You have recived GM Powers!"
<'DM'> <-------- this is line 250

O.O why is there a <'DM'> in your code?
In response to Green Lime
mob/GM/Give(mob/M as mob in world)
M.verbs += typesof(/mob/GM/verb)
M << "You have recived GM Powers!"


another solution could be

mob/GM/Give(mob/M as mob in world)
M.verbs.Add(typesof(/mob/GM/verb)
M << "You have recived GM Powers!"


I didn't run these threw a compiler, so it might not work without some indenting work.

and if for some ungoddly reason you have
<'DM'>
in your code.
Remove it strait away. This does nothing. and causes Errors. Which by the look of the error you posted. Is the cause of your error.
In response to Tiberath
ooh ok
thanks the code isn't mine some1 gave it to me on the forums
( damn I should really stop copieing codes...)