ID:147949
 
I'm trying to make a temporary ban command, but I have another teeny tiny nearly insignificant problem that I can't find the solution to once again.

Temporary_Ban(mob/M in world)
set desc = "(person) Ban a player for a set amount of minutes."
set category = "Owner"
if(M == src)
usr << "You cannot ban yourself."
return
if(M.Host == 1)
usr << "You cannot ban the host."
return
else
var/tempban = input("How long to ban?(Integers only)","Temporary Ban")
banned += M.key
banned += M.client.address
world << "[src] has banned [M] ([M.key]) for [tempban] minutes."
var/banny = (tempban *= 600)

del(M.client)
del(M)
sleep(banny)
banned -= M.key
banned -= M.client.address

The line I'm having the problem with is once again bolded and italicised. It says "GM.dm:259:error::missing expression" but I have no idea how to fix it. Help?
tempban *= 600 should be tempban * 600
var/banny = (tempban *= 600)

Just change that to var/banny = (tempban * 600)

*= is for changing a variable to a multiple of itself like

//Double the gold of the player
player.gold *= 2