ID:147834
 
I got such excelant help last time. (thanks again for turning me onto the Topic() proc DarkView) That I decided to come back for anouther round. ^_^

Ok, I am tringto make a verb that will let you enter your friends byond key and a message and send an inviting page to them. Here is what my code looks like.

mob
verb
Invite_user()
var/user1 = input("What is your friends byond key?","There Byond Key")
if(user1 == null)
alert("you must enter a byond key.")
else
var/user2 = input("What would you like the invite message to say?","Message")
if(user2 == null)
user2 = "Join [usr.key] in Mystic Legends."
alert("Your message has been sent to [user1].")
SendPage(user2,user1,"summon")
else
alert("Your message has been sent to [user1].")
SendPage(user2,user1,"summon")

I get the errors

loading mystic legends.dme
verbs.dm:116:error:SendPage:undefined proc
verbs.dm:119:error:SendPage:undefined proc

mystic legends.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)

I think I am calling the proc under the wrong name or something like that. I checked the built in help and it says to call it as SendPage. So if anyone can help I'd apreciate it the help.

Thanks,
~~TK6000~~ ^_^

PS: I moved this form the newbie form, Just so I could get the Coding Problem form peoples info on it.
SendPage() is a client procedure. Use client.SendPage().

I don't use that procedure, but I think you want "summon=1" rather than just "summon".
Please do not double post. The people in Code Problems and Newbie Central are basically the same.
In response to Yota
Thanks, and sorry, I thought that maybe there might be diff people checking the diff forms.

~~TK6000~~