YSI-Includes icon indicating copy to clipboard operation
YSI-Includes copied to clipboard

Question about #74

Open tr1xy opened this issue 4 years ago • 3 comments

**/*---------------------------------------------------------------------*//**
 *
 * <param name="playerid">Player who left.</param>
 * <remarks>
 *  Called AFTER "OnPlayerDisconnect" so that using "Kick" inside a
 *  "foreach" loop doesn't crash the server due to an OOB error.
 * </remarks>
 *//*--------------------------------------------------------------------**/**

Can someone please give me the MCVE that'll crash the server and do I need to do this for my iterators containing player ids (for example let's say that I have Admins iterator, can this cause problems and do I need to delay it 0ms too if I want to Iter_Remove inside OnPlayerDisconnect...?)?

#74

tr1xy avatar Aug 08 '20 20:08 tr1xy

https://pastebin.com/DkhWF107 https://i.imgur.com/7IahvRX.png @Y-Less is this what it's supposed to fix? 🤔

tr1xy avatar Aug 08 '20 20:08 tr1xy

so that using "Kick" inside a "foreach" loop doesn't crash the server due to an OOB error is this what it's supposed to fix? No. OOB = out of bounds. (Runtime error 4).

ghost avatar Oct 03 '20 09:10 ghost

@tr1xy don't know, imgur doesn't work for me sorry.

Y-Less avatar Oct 03 '20 09:10 Y-Less