Why this:wont work? :(Code:if LoggedIn then Exit;
Printable View
Why this:wont work? :(Code:if LoggedIn then Exit;
:confused: Why do you say it doesn't work?
Works fine here. Surely you'd want
?SCAR Code:if (Not LoggedIn) then Exit;
Nope, its at the beginning of the script and when I'm logged in, it just skips that and starts the login procedure..
That's because you have if(LoggedIn) then Exit;. It's always going to skip it if you start logged in. Use: if(not(LoggedIn)) then LoginPlayer; or Exit; instead.
or..
SCAR Code:begin
if LoggedIn then
begin
MainLoop;
end else
LoginPlayer;
end;
But you should really do.
SCAR Code:begin
if(Not LoggedIn)then LoginPlayer;
MainLoop;
end;
Looks alot better, and easier :P
or if you really want to simple it just go:
SCAR Code:begin
LoginPlayer; //LoginPlayer already has if LoggedIn the Exit
MainLoop;
end;
You don't understand.. I don't use srls multi player things, because I don't know how those works, I just want the script to check, if the character is already logged in, if it is, then it would log out it..