If my script were to log out and I want it to log back in, how do I do that?
I've tried
Simba Code:If (not loggedin) then
loginplayer
but that spouts my name and password, how do I fix this?
If my script were to log out and I want it to log back in, how do I do that?
I've tried
Simba Code:If (not loggedin) then
loginplayer
but that spouts my name and password, how do I fix this?
This is how I do it
Simba Code:if (not(LoggedIn)) then
if Players[CurrentPlayer].Active then
LoginPlayer;
Also get into the practice of following standards when you code, it makes it easier to read. Hope this helps.
Correct me if I'm wrong Brotein but you indented three times on your second line instead of once = incorrect standards
I'm sure this would be the way to do it:
Simba Code:if not LoggedIn then //removed unnecessary brakets
if (Players[CurrentPlayer].Active = True) then // you didn't set Active to true...
LoginPlayer;
Simply a GOD beast...
My Tutorials
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
Last edited by Abu; 04-11-2012 at 01:29 PM.
Simply a GOD beast...
My Tutorials
Yes, but he was checking if the player is Active.
is the same asSimba Code:if(Players[CurrentPlayer].Active = True)thenSimba Code:if(Players[CurrentPlayer].Active)then
Personally, I like the second method better.
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
Thanks for the help everyone, will be sure to add it into my latest script.
There are currently 1 users browsing this thread. (0 members and 1 guests)