Vice City: Multiplayer

VC:MP Discussion => Bugs and Crashes => Support => Acknowledged Bug Reports => Topic started by: Stormeus on May 05, 2015, 11:30 PM

Title: GetPlayerIP can return 0.0.0.0
Post by: Stormeus on May 05, 2015, 11:30 PM
Reproducible by kicking in onPlayerJoin according to Gudio. Bug split from a closed issue it was attached to. This topic is for bookkeeping purposes.
Title: Re: GetPlayerIP can return 0.0.0.0
Post by: Stormeus on May 10, 2015, 07:49 AM
Alright, I can't reproduce this issue with this script:
function onPlayerJoin(player) {
player.Kick();
}

function onPlayerPart(player, reason) {
print(player.ID + ", " + player.IP);
}

Any suggestions?
Title: Re: GetPlayerIP can return 0.0.0.0
Post by: . on May 10, 2015, 07:56 AM
Nope :-\ Works even after you call the Kick function (tested only locally).

function onPlayerJoin(player) {
 player.Kick();
 print(player.ID + ", " + player.IP);
}

function onPlayerPart(player, reason) {
 print(player.ID + ", " + player.IP);
}
Title: Re: GetPlayerIP can return 0.0.0.0
Post by: Gulk on May 10, 2015, 08:47 AM
print("[PART] ["+player.ID+"] [ "+player.Name+" ] IP: [ "+player.IP+" ] UID: [ "+player.UniqueID+" ]");
Title: Re: GetPlayerIP can return 0.0.0.0
Post by: Stormeus on May 10, 2015, 09:05 AM
Still not seeing it.

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FNKt421T.png&hash=1e1c2d77a351501f5e213e34b29c7ea5900b4219)
Title: Re: GetPlayerIP can return 0.0.0.0
Post by: Gulk on May 10, 2015, 09:11 AM
maybe it's something in the previous code: http://pastebin.com/LfXLK4W0
Title: Re: GetPlayerIP can return 0.0.0.0
Post by: rww on May 10, 2015, 10:44 AM
I upadated server to new files, and still is the same

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi60.tinypic.com%2Fmcc86x.png&hash=7ed12144d6e2a3fa2e106117cda5b30cce756db5)
Title: Re: GetPlayerIP can return 0.0.0.0
Post by: rObInX on May 12, 2015, 03:45 PM
In storm's pic, you can see a message below the IP display while not in rwwpl's.
That probably indicated playerdata was still stored when the IP was printed.