Autologin.
#1

When i connect with the registered username. it logs me automaticly in. loads my data. But when i join with different username. it logs me auto in. it isn't registered. everything of data = 0 when trying to /register it will say you are already logged in. So, can any1 help me fixing this?

pawn Код:
//////////////// OnPlayerConnect down here. ////////////////////////////
 new IP[16];
  new name2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name2, sizeof(name2));
  new string2[90];
  GetPlayerIp(playerid, IP, 16);
    format(string2, sizeof(string2), "IP=%s", dini_Get(name2, "IP"));
  if(strcmp(string2, IP, true)) { OnPlayerLogin(playerid); }

///////////////////////// OnPlayerLogin down here. //////////////////////

    new IP[16];
    GetPlayerIp(playerid, IP, 16);
    dini_Set(udb_encode(pInfo[playerid][name]), "IP", IP);
Reply
#2

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)