View Single Post
eyal282
Veteran Member
Join Date: Aug 2011
Old 05-19-2022 , 16:39   Re: [INC] Karyuu Library | Community Collection
Reply With Quote #3

Karyuu_IsValidClient

This stock and alternatives need to disappear out of existence.
Code:
#define KARYUU_LOOP_CLIENTS(%1) for (int %1 = 0; %1 <= MaxClients; %1++) if (Karyuu_IsValidClient(%1))

#define KARYUU_LOOP_CLIENTS(%1) for (int %1 = 0; %1 < 999; %1++) if (Karyuu_IsValidClient(%1))
Only the second stock requires IsValidClient, because it leaks outside MaxClients

Note that I think MAXPLAYERS is a wrote method to loop.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline