hey there,
i noticed that the attribute PlayerId isn't correctly filled on OnPlayerRemoved events
that's unfortunate because i would like to determine if the player who left was carrying an object and i want to drop it at the players last position but the id isn't correct and the .Player attribute of the objects carried by the player are already Null as soon as he leaves
regards,
steff
//Edit: described my point clearer
[Bug] OnPlayerRemoved Event PlayerId
Moderator: English Moderator
[Bug] OnPlayerRemoved Event PlayerId
Last edited by steeffeen on 30 May 2013, 16:27, edited 1 time in total.
Re: [Bug] OnPlayerRemoved Event PlayerId
I just don't get your point. What do you want to do?
ЕÑть вопроÑÑ‹? Только Ñкайп - faserg1.

Жизнь - Ñто динамика ритма. Life is dynamic of rhythm.

Жизнь - Ñто динамика ритма. Life is dynamic of rhythm.
Re: [Bug] OnPlayerRemoved Event PlayerId
i just say that the attribute PlayerId isn't filled correctly
i saved the correct Id before the player left to check it and the ids don't match
i saved the correct Id before the player left to check it and the ids don't match
Re: [Bug] OnPlayerRemoved Event PlayerId
Hm, how did you get that? May I watch on some parts of script?
ЕÑть вопроÑÑ‹? Только Ñкайп - faserg1.

Жизнь - Ñто динамика ритма. Life is dynamic of rhythm.

Жизнь - Ñто динамика ритма. Life is dynamic of rhythm.
Re: [Bug] OnPlayerRemoved Event PlayerId
easiest way:
and let a player join and leave
just tested it and the result were these 2 logs
Code: Select all
***OnNewPlayer***
***
log(Player.Id);
***
case CSmModeEvent::EType::OnPlayerRemoved: {
log(Event.PlayerId);
}
just tested it and the result were these 2 logs
#56623104
#402051488
Re: [Bug] OnPlayerRemoved Event PlayerId
Try to put another log:
Code: Select all
log(Event.Player.Id);
ЕÑть вопроÑÑ‹? Только Ñкайп - faserg1.

Жизнь - Ñто динамика ритма. Life is dynamic of rhythm.

Жизнь - Ñто динамика ритма. Life is dynamic of rhythm.
Re: [Bug] OnPlayerRemoved Event PlayerId
the player object is already destroyed as soon as the player leaves so we can't access it
Re: [Bug] OnPlayerRemoved Event PlayerId
i just did another test:
- two different player join: two very high ids
- first player leaves: #100
- second player leaves: #100
this just doesn't make sense
- two different player join: two very high ids
- first player leaves: #100
- second player leaves: #100
this just doesn't make sense
Re: [Bug] OnPlayerRemoved Event PlayerId
Ok, may you add in OnNewPlayer that log:
Player.User.Id
?
Player.User.Id
?
ЕÑть вопроÑÑ‹? Только Ñкайп - faserg1.

Жизнь - Ñто динамика ритма. Life is dynamic of rhythm.

Жизнь - Ñто динамика ритма. Life is dynamic of rhythm.
Re: [Bug] OnPlayerRemoved Event PlayerId
uhm... ended up logging the Login of the player... wtf
//Edit: reported here: forum.maniaplanet.com/viewtopic.php?f=279&t=19854
Code: Select all
log(Player.User.Id);
//Edit: reported here: forum.maniaplanet.com/viewtopic.php?f=279&t=19854
Last edited by steeffeen on 30 May 2013, 17:08, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 1 guest