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~~ ^_^
ID:173876
![]() Nov 5 2003, 7:59 am
|
|
![]() Nov 5 2003, 10:32 am
|
|
The problem is that SendPage() doesn't belong to mobs, it belongs to clients... so if you're calling it from within a mob's procs, it's client.SendPage()
|
src.client.SendPage() would be fine, too, right? I like to be very specific. Helps me sometime later on :-)
|
Same thing... since the proc you're in always belongs to src (whatever src is), client.SendPage() actually is read as [src.]client.SendPage()
|