ID:270494
 
runtime error: type mismatch
proc name: Stat (/mob/Stat)
usr: Goku (/mob)
src: Goku (/mob)
call stack:
Goku (/mob): Stat()


Problem description:
I dont know what this error means????????.........
Not sure. I would suggest putting #define DEBUG and compile again. Then do what ever you did before to get that error. It will direct you to the line the error is coming from.
In response to Crzylme
ill try
In response to Ss4 core
I tried it but it didnt work this is what happens...

it keeps saying that error over and over like 20 times then a new error comes up like 80 times saying:
<font color=red>
runtime error: type mismatch
proc name: Stat (/mob/Stat)</font></font>
In response to Ss4 core
Show us your Stat() proc..
In response to Ss4 core
the error started popping up right after i put this new coding in:
mob
var
hideipan=1
GMM
logged_in="no"
pl
maxPl
Ki
maxKi
Alignment
ap
hometown
maxstrength
Strength
maxStamina
Stamina
Stat()
if(src.hideipan == 1||src.hideipan == 0||src.hideipan == null)
statpanel("Players")
for(var/mob/m in world)
if(m==src)
else
if(m.client)
if(m.logged_in=="no"||m.logged_in==0||m.logged_in==null)
stat("Name:","[m.name]")
stat("GM Level=","[m.GMM]")
stat("Logging in...","")
else
stat(m,"")
stat("GM Level=","[m.GMM]")
stat("Home=","[m.hometown]")
if(src.GMM=="Owner"||src.GMM=="Co-Owner"||src.GMM==1||src.GMM==2||src.GMM==3||src.GMM==4)
stat("Pl=","[m.pl] / [m.maxPl]")
stat("Str=","[m.Strength] / [m.maxstrength]")
stat("Ki=","[m.Ki] / [m.maxKi]")
stat("Stam=","[m.Stamina] / [m.maxStamina]")
stat("Home=","[m.hometown]")
stat("Align=","[m.ap] ([m.Alignment])")
stat("Address=","[m.client.address]")
In response to Mysame
my whole stat proc is way to big to show lol but that one i just pput in should help...
In response to Ss4 core
Everything under Stat() is indented one tab too far.
In response to Dick Gumshoe
i fixed tha but the error still pops up...
In response to Ss4 core
Could it be that fact that the line under Stat() with the src.hideipan is checked for both 1 AND 0? What's the point in that? It looks like you're checking to see if its false, but with the src.hideipan == 1, you checking for both true and false.

Also, good to remember
if(x == 1)

is the same as
if(x)

and
if(x == 0 || x == null)

is the same as
if(!x)

when you're searching for true or false only. Unsure if !x applies to the null part though. I think it does.
In response to Pyro_dragons
didnt change a thing... same error pops up and infact it wasnt just that codinf that was the problem bc i took it out and the error still comes up...
In response to Ss4 core
In DreamMaker:
Build->Preferences for [project name]-> Generate Debugging info. Put this on. It'll tell us the LINE the error is in. Show us that line, and the lines surrounding it.
In response to Mysame
wait i fixed it sorry to bother you guys but thank you