GetPlayerIp weird thing
#3

Using GetPlayerIp in OnPlayerDisconnect callback from localhost always return 255.255.255.255
When a player logins, send a query to update the IP rather when disconnecting.

Another thing is:
- Have a unique ID for each player in the table (auto increment enabled). Whenever you want to update or select (I'm not referring to check whether the player is registered or not) data for a player, use that "ID" in WHERE clause instead of "Username". Use FOREIGN KEY Constraints for the "Admins" table.

- Update data to the table ONLY when needed.
Reply


Messages In This Thread
GetPlayerIp weird thing - by NeXoR - 16.06.2016, 02:41
Re: GetPlayerIp weird thing - by oMa37 - 16.06.2016, 03:36
Re: GetPlayerIp weird thing - by Konstantinos - 16.06.2016, 11:09
Re: GetPlayerIp weird thing - by Gammix - 16.06.2016, 11:16
Re: GetPlayerIp weird thing - by Konstantinos - 16.06.2016, 11:26
Re: GetPlayerIp weird thing - by NeXoR - 17.06.2016, 02:37

Forum Jump:


Users browsing this thread: 2 Guest(s)