mob
proc
saveall()
for(var/mob/M in world)
if(!M.client)
return
M.SaveT()
sleep(1)
sleep(0)
mob
verb
Guardar_todas_las_partidas()
set category="Dueño"
src.SaveT()
Problem description:
Codigos\Naruto.dm:387:error: M.SaveT: undefined proc
Codigos\Naruto.dm:396:error: src.SaveT: undefined proc
******************************************************
My problem is this, I save all my games play in a single command that I close constantly and users often are AFK but when compiling tells me that the proc is not defined, I know what the proc thank you very much or if I can help to correct my mistake
mob/proc/SaveT()
You may want to use usr instead of src in your brazilian verb.
Also, your for() loop isn't going to work. You are using return in your client check, which is going to stop the whole loop on the first mob it finds without a client. Use continue instead, which skips the code and goes to the next iteration of the loop. One more thing: you don't need in world in the for() loop, because it searches the world by default.