ID:1656974
 
(See the best response by Madcrackfiend.)
Code:
mob/PC/Stat()

//-------VITALS------------------------------

if(src.tab_vitals)
statpanel("Stats")
stat("Level:",level)
stat("EXP:","[round(src.exp / src.tnl * 300)] %")
if(src.sp > 0)
stat("skill points:","[src.sp]")
stat("--------","")
stat("Hp:","[num2text(round(src.powerlevel),100)] / [num2text(round(src.powerlevel_max),100)]")
stat("Strength:","[num2text(round(src.strength),5)]")
stat("Defence:","[num2text(round(src.defence),5)]")
stat("Agility:","[num2text(round(src.agility),5)]")
stat("--------","")
stat("Chance to Block:","[src.block] %")
stat("Chance to Counter:","[src.counter] %")
stat("Chance to Dodge:","[src.dodge] %")
stat("Chance to Reflect:","[src.reflect] %")
stat("Chance to Critical:","[src.critical] %")
stat("--------","")
stat("Kills:","[src.kills]")
stat("Arena Victories:","[src.arena_wins]")
stat("Arena Casualties:","[src.arena_losses]")

//-------QUESTS------------------------------

if(src.tab_quests)
for(var/obj/Quests/O in contents)
statpanel("Quests")
stat("")
stat(O)

//-------INVENTORY------------------------------

if(src.tab_inventory)
statpanel("Inventory")
stat("Weapon",src.weapon)
stat("Head:",src.head)
stat("Chest:",src.chest)
stat("Hands:",src.hands)
stat("Necklace:",src.Necklace)
stat("Legs:",src.legs)
stat("Feet:",src.feet)
if(src.inven_min > 0)
stat("--------","")
for(var/obj/Equipment/O in contents)
stat(O)
for(var/obj/Guild/G in contents)
stat(G)
stat("--------","")
stat("Col"[src.col]")
stat("Banked Col"[src.banked_col]")
var/count = 0
for(var/obj/Equipment/E in contents)
count ++
for(var/obj/Gym/G in contents)
count ++
src.inven_min = count
stat("Space:","[src.inven_min] / [src.inven_max]")

//-------GUILD----------------------------------

if(src.in_guild)
if(src.show_guild_tab == 1)
statpanel("Guild Members")
for(var/mob/PC/M in world)
if(M.guild_name == src.guild_name)
stat(M)
stat("Level:","[M.level]")
stat("Rank:","[M.guild_rank]")
stat("Guild Battle Rank","[M.guildbrank]")
stat("","")

/* //-------FRIENDS----------------------------------



if(src.show_friends_tab == 1)
statpanel("Friends Online")
for(var/X in src.friends)
var/mob/M=locate(X) in world
if(M)
if(src.friends[X]==M.name)
stat(M)
*/

<dm>

<b>Statistics Panel.dm:53:error: unterminated text (expecting ")
Statistics Panel.dm:53:error: ")": missing comma ',' or right-paren ')'
Statistics Panel.dm:53:error: ")": expected end of statement
Statistics Panel.dm:53:error: expected expression
Statistics Panel.dm:54:error: unterminated text (expecting ")
Statistics Panel.dm:54:error: ")": missing comma ',' or right-paren ')'
Statistics Panel.dm:54:error: ")": expected end of statement
Statistics Panel.dm:54:error: expected expression</b>

Best response
Odds are you forgot forgot to close a text string on line 53. Try putting a " at the end of the string. Then there is a good chance that you don't have enough )'s on a proc right around there. Keep in mind we don't know where line 52,53, and 54 are in that block of code.

Edit

        stat("Col"[src.col]")
stat("Banked Col"[src.banked_col]")
should be
stat("Col","[src.col]")
stat("Banked Col","[src.banked_col]")

/Edit
You should know doing that in stat for actual play is a bad idea. Stat() updates around every second by default.