ID:264593
 
Code:
proc/GlobalBan()
world<<"<font color = blue><b>Server Info: </font></b><b>Updating Global Ban List"
var/http = world.Export("http://www.gohangames.webcindario.com/global ban.txt")
if(!http)
usr << "Failed to connect."
return
var/A = http["CONTENT"]
if(A)
A=html_encode(file2text(A)) //you only html_encode() and file2text()'d the input to the world and were looping though an html file
usr<<"Currently Players in Global Ban"
usr<<A
world<<"<font color = blue"><b>Server Info: </font></b><b>Global Ban List Succesfully Loaded"
for(var/client/M)
if(findtext(A,M.key))
M<<"You Are Banned Form Gohan Games"
del(M)
M.GBanned=1

mob/var/GBanned=0


Problem description: IT Sends
loading The Game.dme
Global Subscriber List.dm:24:error:GBanned:undefined var


The Game.dmb - 1 error, 0 warning (double-click on an error to jump to it)


You delete the client(M) before you turn its GBanned to 1. Though this will just fix your error, just move del(M) below M.GBanned=1.
In response to Bakasensei
Yes i did but i has the Same Problem.
clients are clients, not mobs. You'd need to define your GBanned var for clients instead.

Baka was also right in that the del(M) does need to be after that line, but that would cause a different, runtime error (cannot read null.GBanned).
In response to Garthor
It Will Works if i use a List Var?
In response to Revolution Gohan
No. Despite your asking, clients still remain clients and lists still remain lists, and clients are not lists and lists are not clients.

I also request that you take at least a few moments to write coherent sentences.
In response to Garthor
Ok, So What Variable i can use??? Because if the player Get Banned and he try to login it sends a Message like "You are Globally Banned"