Connect login problem
#1

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);
    }
}
Reply
#2

Updated topic + this script is under onplayerconnect
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)