Previous IP saving
#1

Hey.

Im trying to save the IP a player connects from to the database, this i have done with succes.
However if the IP differs from the IP a player last connected from i would like to save it in the database too.

As of now i have the following function
Код:
        new plrIP[16];
    	GetPlayerIp(playerid, plrIP, sizeof(plrIP));
    	if(pData[playerid][IP] != plrIP)
    	{
    		//Update PIP Previous IP Adress
    	}
        return 1;
}
So basically if a player connects the IP field gets updated, but if it differs from normal(connection from a new IP)
I would like to get the IP data, and put that to the PIP field, and update the IP field with the new ip.
Does that sound doable?
If it is how would i be doing this?
Reply


Messages In This Thread
Previous IP saving - by yvoms - 11.01.2016, 20:35
Re: Previous IP saving - by itsCody - 11.01.2016, 20:47
Re: Previous IP saving - by yvoms - 11.01.2016, 21:29
Re: Previous IP saving - by AmigaBlizzard - 11.01.2016, 21:51
Re: Previous IP saving - by justice96 - 11.01.2016, 22:27
Re: Previous IP saving - by yvoms - 12.01.2016, 09:28

Forum Jump:


Users browsing this thread: 2 Guest(s)