SA-MP Forums Archive
Connect login problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Connect login problem (/showthread.php?tid=124038)



Connect login problem - ~Dangun! - 28.01.2010

When i connect it's just logging me in. Automaticly. Loads my data and such. But when i connect with a different name. it logging me in to. it isn't registered. The data is 0 and such and when trying to /register it says you are already logged in.
pawn Код:
new tmp[50],tmp2[256]; GetPlayerIp(playerid,tmp,50); tmp2 = dini_Get(udb_encode(pInfo[playerid][name]),"IP");
    if(!strcmp(tmp,tmp2,true)) {
    format(string,256,"Welcome back, %s. You have automatically been logged in.",pInfo[playerid][name]);
  SendClientMessage(playerid,oranje, string);
    OnPlayerLogin(playerid);
    }
}



Re: Connect login problem - ~Dangun! - 28.01.2010

Updated topic + this script is under onplayerconnect