[HELP] Messenger.MyPersonalMessage won't assign to variable? - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: [HELP] Messenger.MyPersonalMessage won't assign to variable? (/showthread.php?tid=76665) [HELP] Messenger.MyPersonalMessage won't assign to variable? by Kriogenic on 08-10-2007 at 12:17 AM
Hey there I am currently making a script. RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? by GNSPS on 08-10-2007 at 12:26 AM
Have you got something in your PSM at all? RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? by Spunky on 08-10-2007 at 12:26 AM
try code: and make sure that it's not the property that is an empty string for some reason RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? by Kriogenic on 08-10-2007 at 12:33 AM
I tried RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? by Spunky on 08-10-2007 at 12:34 AM
can you copy and paste the whole code in a post for me please in code tags? eg: RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? by GNSPS on 08-10-2007 at 12:39 AM For me it works just fine... Yeah you would have to post the whole code because it must be any other statement messing around with the PSM... RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? by matty on 08-10-2007 at 12:45 AM
He is either doing it outside of a function or on initialize and the Object isn't filled yet because the user isn't signed in. code: RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? by Kriogenic on 08-10-2007 at 12:45 AM
Sure..... code: Now this is just the basis of my script... I am going to build on it make it so people can change how many minutes and what the message will say right now... After an hour the PM gets reset to normal... Lots for to do on the script its just a basis... Thanks, Kriogenic. RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? by GNSPS on 08-10-2007 at 12:50 AM
You've got the variable wrong it isn't outputing anything because you're initializing it inside OnEvent_ChatWndSendMessage() function... if you put it like this it should work: code:[/code] RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? by matty on 08-10-2007 at 12:50 AM
code: The problem is is that you are declaring TheOldPm inside a function making it local to the function, however you are trying to use a variable called MyOldPm. RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? by Spunky on 08-10-2007 at 12:52 AM if your going to use MyOldPM like that, you need to declare it as global... outside of any functions put code:and then just use MyOldPM like normal in ur script once it's been set, but you don't use var MyOldPM again, just in that initial declaration EDIT: Beaten x2 RE: [HELP] Messenger.MyPersonalMessage won't assign to variable? by Kriogenic on 08-10-2007 at 12:55 AM
Alright thanks this works perfectly thanks for all your help |