ip saving
#1

hello so im saving player ip into database (mysql)
but it is not saving i mean updating
pawn Код:
mysql_format(mysql, query, sizeof(query), "UPDATE `players` SET `IP`='%s', `Admin`=%d, `Kills`=%d, `Deaths`=%d, `Cookie`=%d,`Notify`=%d, `TotalTime`=%d,`Money`=%d WHERE `ID`=%d",\
    pInfo[playerid][IP],pInfo[playerid][Admin],pInfo[playerid][Kills],pInfo[playerid][Deaths], pInfo[playerid][Cookie],pInfo[playerid][Notify], pInfo[playerid][ConnectTime], pInfo[playerid][Money], pInfo[playerid][ID]);

public OnPlayerConnect(playerid)
{
   GetPlayerIp(playerid, pInfo[playerid][IP], 16); //Getting layer's IP
   return 1;
}
i load them into enum pInfo[playerid][IP]

pInfo[playerid][IP] = cache_get_field_content_int(0,"IP");
Reply


Messages In This Thread
ip saving( fixed it my self) - by JeaSon - 25.11.2014, 12:23
Re: ip saving - by Vince - 25.11.2014, 13:01
Re: ip saving - by JeaSon - 25.11.2014, 13:08
Re : ip saving - by Dutheil - 25.11.2014, 13:19
Re: ip saving - by OsteeN - 25.11.2014, 14:10
Re: Re : ip saving - by JeaSon - 25.11.2014, 16:11
Re: ip saving - by iZN - 25.11.2014, 16:41
Re: ip saving - by JeaSon - 25.11.2014, 16:50
Re: ip saving - by AnthonyTimmers - 25.11.2014, 22:59
Re: ip saving - by MD5 - 25.11.2014, 23:52

Forum Jump:


Users browsing this thread: 4 Guest(s)