mob/GM/verb/Upload_Ban_List()
if(fexists("Saves/World Configuration/Banned.cfg"))
var/savefile/F = new("Saves/World Configuration/Banned.cfg")
banned=copytext(F,1,Banned)
usr<<"Banned List Successfully Loaded"
usr<<"Added Banned.cfg Players to Banned List"
var/list/Banned=list()
mob/Login()
if(src.key in Banned)
src<<"You're Banned"
del(src)
return
Problem description: Well i banned me only to test. But when i Login it dont send the message You're Banned. I Think im worng in something of Copytext. Any Idea?
copytext proc
Format:
copytext(T,Start=1,End=0)
so what you have, in english, is...
copy the text from savefile F starting at index o to index list/Banned and place it into banned
Note that Banned and banned are not the same.
Doesn't make much sense to me. It would help to see how you are saving the ban list. If you are saving it in a format such as "Key,Key,Key" then you need to separate each key out and place them into different spots on the list.