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 :)
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 :)