ID:262326
 
Code:
            Give_Gold(mob/M in world)
input("How much do you wanna give?","Give"(text as num))
M.gold += num


Problem description:
Admin.dm:17:error:num:undefined var
Admin.dm:16:error::extra argument

You're not using input() correctly. Look it up in the reference(hit F1 while in DM) to see how to use it.
Bit Cloud3_0 wrote:
Code:
>           Give_Gold(mob/M in world)
> input("How much do you wanna give?","Give"(text as num))
> M.gold += num
>

Problem description:
Admin.dm:17:error:num:undefined var
Admin.dm:16:error::extra argument


mob/verb
Give_Gold(M as mob in world)
var/T = input("How much gold?")as null|num
if(T <= 0)
usr << "You cant give less than 1 gold"
return
if(T >= usr.gold)
usr << "You cant give more gold then you have"
return
else()
M.gold += T
usr.gold -= T
usr << "You gave [mob] [T] gold."
M << "[usr] gave you [T] gold"

This should work. i didnt test it out but it looks fine to me. if there are any errors post them and ill fix it.