PDA

View Full Version : Logged In Player is not in Players array



P1nky
07-30-2008, 12:40 AM
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;



ALL CREDITS TO ZephyrsFury NOW STOP POSTING THIS PROBLEM IN PEOPLES THREADS!!!

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

noidea
07-30-2008, 12:53 AM
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
07-30-2008, 01:03 AM
yeah go ahead rep me for posting lol , and Zeph for telling haha

Waddo
07-30-2008, 01:23 AM
Or just make sure you have

SetTargetDC(SmartGetDC);

in your smart setup =p

P1nky
07-30-2008, 05:16 PM
or that but idk if that helps cause i think i had that in my script still gave me tat error.

Ghostman
07-30-2008, 08:17 PM
Very Short but explained well

mint25642
07-31-2008, 01:38 PM
its not on line 456, i cant find it :O

jerrysyron
07-31-2008, 05:43 PM
Whers login.scar? how do i get to it?

P1nky
08-04-2008, 02:30 AM
scar 3.15>Includes>SRL>SRL>Core>Login.scar

xboxmen
08-04-2008, 05:58 PM
:mad: This is the weirthest thing ever.. even if i delete evrything in my login. he still gives me the error O_O

volcomsk8er
09-20-2008, 08:28 PM
any one add me on yahoo im? xvolcom_boy4x@yahoo.com please i need help how to use this things... >.>

Jamacanhobo
12-22-2008, 03:53 PM
Thanks for the help man, this really did help me a lot.

Torrent of Flame
12-22-2008, 03:55 PM
Thanks for the help man, this really did help me a lot.

Gravedig. Ban this idiot.