automatic login fails
#2

pawn Код:
format(string2, sizeof(string2), "IP=%s", dini_Get(name2, "IP"));
Why this?
Код:
if(strcmp(string2, IP, true))
You forgot a '!'.
pawn Код:
public OnPlayerConnect(playerid)
{

  new IP[56];
  new name2[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name2, sizeof(name2));
  GetPlayerIp(playerid, IP, 56);
  if(!strcmp(dini_Get(name2, "IP"), IP, true)) { OnPlayerLogin(playerid); }
  return 1;
}
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)