How to get a players IP and account creation time?
#4

GetLastLogin is not a function.Try something like
Код:
new pname[25];
new var[256];
new y,m,d,h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
GetPlayerName(playerid,pname,25);
format(var, 256, "UPDATE `YOUR TABLE` SET `lastOn`='%d/%d/%d %d:%d:%d' WHERE `name`='%s'",d,m,y,h,mi,s,pname);
mysql_query(var);
And then use it to OnPlayerConnect,same with IP you have the function to get player ip,GetPlayerIp(playerid)
Reply


Messages In This Thread
How to get a players IP and account creation time? - by Elysian` - 27.05.2012, 16:06
Re: How to get a players IP and account creation time? - by Audi_Quattrix - 27.05.2012, 16:11
Re: How to get a players IP and account creation time? - by Elysian` - 27.05.2012, 16:19
Re: How to get a players IP and account creation time? - by TzAkS. - 27.05.2012, 16:20
Re: How to get a players IP and account creation time? - by Audi_Quattrix - 27.05.2012, 16:26
Re: How to get a players IP and account creation time? - by iggy1 - 27.05.2012, 16:56

Forum Jump:


Users browsing this thread: 5 Guest(s)