11.01.2016, 20:35
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
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?
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; }
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?