Open hiwyn opened 9 months ago
Show output with this:
public OnPlayerDisconnect(playerid, reason) {
new facid = fmember[playerid];
if (facid > 0) {
foreach (new id : FactionMembers_List[facid]) {
printf("BEFORE playerid = %d", id);
}
Iter_Remove(FactionMembers_List[facid], playerid);
foreach (new id : FactionMembers_List[facid]) {
printf("AFTER playerid = %d", id);
}
}
}
Iter_Remove is failing/not working on custom array of iterators
but the player id stills on the facid list