ID:143728
 
Code:
mob/verb/send_file(mob/M in world,var/F as file)
if(alert(M,"[src.name] is trying to send you the file \"[F]"\","Accept","Decline")
if("Accept")
M<<ftp(F)
if("Decline")
return


Problem description:
Send.dm:10:error: ": missing comma ',' or right-paren ')'
Send.dm:10:error: ": missing comma ',' or right-paren ')'

when I press the errors it leads to this line:
if(alert(M,"[src.name] is trying to send you the file \"[F]"\","Accept","Decline")


mob/verb/send_file(mob/M in world,var/F as file)
if(alert(M,"[src.name] is trying to send you the file [F] ","Accept","Decline")
if("Accept")
M<<ftp(F)
if("Decline")
return

Or
mob/verb/send_file(mob/M in world,var/F as file)
if(alert(M,"[src.name] is trying to send you the file \"[F]\" ","Accept","Decline")
if("Accept")
M<<ftp(F)
if("Decline")
return
In response to Hiddeknight
mob/verb/send_file(mob/M in world,var/F as file)
if(alert(M,"[src.name] is trying to send you the file \"[F]\" ","Accept","Decline")
if("Accept")
M<<ftp(F)
if("Decline")
return


now it's says that a comma or something is missing here:
if("Accept")
In response to Arochimaro
Add another ) to the end of the if(alert line it's missing one.
In response to Nadrew
now all of the if's are inconsistent wich is not logical since I used tabs
In response to Arochimaro
Change the if( before your alert() call to switch(