25.11.2014, 12:23
(
Последний раз редактировалось JeaSon; 26.11.2014 в 13:58.
)
hello so im saving player ip into database (mysql)
but it is not saving i mean updating
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");