automatic login fails
#1

I am using this code. When i enter my server it isn't logging my automaticly in.

pawn Код:
public OnPlayerConnect(playerid)
{

  new IP[56];
  new name2[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name2, sizeof(name2));
  new string2[90];
  GetPlayerIp(playerid, IP, 56);
  format(string2, sizeof(string2), "IP=%s", dini_Get(name2, "IP"));
  if(strcmp(string2, IP, true)) { OnPlayerLogin(playerid); }
  return 1;
}


///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

public OnPlayerLogin(playerid)
{
  new string[265];
  new IP[56];
  GetPlayerIp(playerid, IP, 56);
  dini_Set(udb_encode(pInfo[playerid][name]), "IP", IP);
}
It is fake logging me in also. http://i47.tinypic.com/hrnehu.jpg
Reply


Messages In This Thread
automatic login fails - by ~Dangun! - 15.01.2010, 14:55
Re: automatic login fails - by GTAguillaume - 15.01.2010, 15:32
Re: automatic login fails - by ~Dangun! - 15.01.2010, 15:47
Re: automatic login fails - by ~Dangun! - 16.01.2010, 08:32
Re: automatic login fails - by KnooL - 16.01.2010, 08:35
Re: automatic login fails - by ~Dangun! - 16.01.2010, 08:43
Re: automatic login fails - by KnooL - 16.01.2010, 09:10
Re: automatic login fails - by ~Dangun! - 16.01.2010, 09:23
Re: automatic login fails - by ~Dangun! - 16.01.2010, 10:02
Re: automatic login fails - by ~Dangun! - 16.01.2010, 10:05

Forum Jump:


Users browsing this thread: 1 Guest(s)