proc
Timer()
while(worldtime>0)
if(reboot)
return
if(paused)
sleep(10)
continue
worldtime--
sleep(10) //this is line 18
world<<"<b><font face=arial black><font color=red>GAME:The non-ITs win!"
PickFreezeWinner()
PickUnFreezeWinner()
for(var/mob/E in players)
if(!E.it)
E.GamesWon++
spawn(90)
world.reboot()
Problem description:
runtime error: type mismatch
proc name: Timer (/proc/Timer)
source file: Procs.dm,18
usr: KirbyAllStar (/mob)
src: null
call stack:
Timer()
: Begin Regular()
KirbyAllStar (/mob): Regular Freeze Tag - GM()
I've gotten type mismatch before and usually it was a stupid error on my part, but this time I don't see the problem. Anyone know whats wrong with it?
Now IIRC the ++ and -- operators are quite durable, so I assume it was really off in determining the error line and its while(worldtime>0). The '>' is less durable, perhaps worldtime is a text string or some such and not a number?
Also, about your font tags... You can have multiple attributes in a single font tag, no reason to have 2 like you've done. If you want an attribute to include spaces, put quotes (I think both single and double quotes are ok, though don't mix them) around the value. It is generally advised to always put quotes though you don't need to unless you have spaces.
"<font face='arial black' color=red>aaa</font>"