SRL Archive - Outdated Tutorials

Logged In Player is not in Players array


P1nky

2008-07-29 20:40:59

From: ZephyrsFury
The problem is with LoginPlayer. It tries to find your username in the bottom left of the chat box to verify that the logged in player is in the Players array. If it doesn't it logs out. Unfortunately it doesn't seem to be working too well so I'd suggest you go to Login.scar and remove this bit from LoginPlayer (Line 456):


T := GetSystemTime;
while (not(FindColor(Tx, Ty, 0, 8, 458, 45, 470))) and (GetSystemTime - T < 5000) do
Wait(100);
if (FindColor(Tx, Ty, 0, 8, 458, 45, 470)) then
if (not(FindTextTpa(0, 0, 7, 457, 137, 475, Players[CurrentPlayer].Nick, SmallChars, Nothing))) then //Double check if logged in player is what we think it is
begin
WriteLn('Logged In Player is not in Players array.');
LogOut;
Wait(1000 + Random(1000));
LoginPlayer;
Exit;
end;


[PHP]ALL CREDITS TO ZephyrsFury NOW STOP POSTING THIS PROBLEM IN PEOPLES THREADS!!![/PHP]

just take those 12 lines out and save :) and your ready to go :)

noidea

2008-07-29 20:53:53

Cool, it's short, sweet, and explains everything within a few sentences.

Thanks will help a bunch of people and reduce useless threads about this,

noidea

P1nky

2008-07-29 21:03:20

yeah go ahead rep me for posting lol , and Zeph for telling haha

Waddo

2008-07-29 21:23:19

Or just make sure you have

SetTargetDC(SmartGetDC);

in your smart setup =p

P1nky

2008-07-30 13:16:07

or that but idk if that helps cause i think i had that in my script still gave me tat error.

Ghostman

2008-07-30 16:17:51

Very Short but explained well

mint25642

2008-07-31 09:38:45

its not on line 456, i cant find it :O

jerrysyron

2008-07-31 13:43:18

Whers login.scar? how do i get to it?

P1nky

2008-08-03 22:30:46

scar 3.15>Includes>SRL>SRL>Core>Login.scar

xboxmen

2008-08-04 13:58:24

:mad: This is the weirthest thing ever.. even if i delete evrything in my login. he still gives me the error O_O

volcomsk8er

2008-09-20 16:28:25

any one add me on yahoo im? [email]xvolcom_boy4x@yahoo.com[/email] please i need help how to use this things… >.>

Jamacanhobo

2008-12-22 10:53:30

Thanks for the help man, this really did help me a lot.

Torrent of Flame

2008-12-22 10:55:13

From: Jamacanhobo
Thanks for the help man, this really did help me a lot.


Gravedig. Ban this idiot.