ID:167249
 
How do i make a report a bug input that when a person clicks a verb that says "Report A Bug" if they put nothing it does nothing if they put something is sends it over to the admin (me) and instead of a message it puts it in a pop up box that will be saved unless i click a verb on the pop up box that says delete.

So prety much i want a message to be sent over and saved into a list that will only be deleted if i click delete which is going to be right after the message
i'm not sure how to do the delete thing but i can do the rest.
mob/verb/Report_Bug(msg as text)
if(!msg)
src<<"You have to enter something"
else
src<<"Thank you for sending a bug report"
var/savefile/B = new("Bug report.sav")
B["[msg]"] << msg
You can write them to a textfile easily enough.

mob/verb/Report(t as text)
set name = "Report a Bug"
while(!t) t = input("What is your report?")
var/textfile = file("Bug Reports.txt")
textfile << "[key] | [t]"
In response to Dragon_Fire6564
ok so i got this far

mob
var
Email = ""




mob
verb
Report_Bug()
var/Who = input("Whats your bug?") as mob
sleep(2)
var/Em = input("What Would you like to email to [Who]") as text
sleep(5)
Who:Email += "[usr]-[Em]<BR>" //The Br is so it make spaces between E-Mails
Who << "You have an Email!"
Check_Bug_Reports()
usr << "\red <B>[usr]</B>'s Inbox<BR>"
usr << "[usr.Email]"
Empty_Bug_Reports()
set src in view(1)
usr.Email = ""



so how do i make it so it only goes to me
In response to Mxjerrett
In response to Mxjerrett
One of two ways for that. You could hard code your key in as the Who, which is not recommened, or you could make a check to see who the host is, and make the who equal that. You would also have to make sure that there was a process in place so that if there was not an admin or host on, than they could still recieve the bug report.