ID:261674
 
statpanel("Players")
for(var/mob/M in world)
if(M.client)
stat(M)


StickWorld.dm:31:error: proc definition not allowed inside another proc

"for(var/mob/M in world)" is where it points to. I've tried all I know to put it in another way. Nothing. Any suggestions?
Also if you know another code to replace it, please tell me.
mob
Stat()
statpanel("Players")
for(var/mob/M in world)
if(M.client)
stat(M)
try that I think you may just be spacing it wrong.
In response to Zaltron
its not the spacing.. its not anything.. i have like 10 people currently working on it.. its the part that i said was the error.. either that or my whole game is retardedly coded.
In response to Dark-Xero
Dark-Xero wrote:
its not the spacing.. its not anything.. i have like 10 people currently working on it.. its the part that i said was the error.. either that or my whole game is retardedly coded.

It is the spacing--or more specifically, the indentation. The next line after statpanel() should be indented to the same level, but it's indented further; you may not see it in DM if you mixed tabs and spaces, but it shows up here on the forum.

Lummox JR