sizeof is a compile-time operator
I see you're doing manual counting using while loops and the like which isn't required, but sizeof saves a lot of headache
I don't understand why you can't use FindEntityByClassname, but I'm going to assume there's a good reason for it as you're pulling in sdktools anyways.
PHP Code:
// A return of -2 means the game doesn't implement
// this feature.
case -2:
{
ReplyToCommand(Client, "\x03[Trigger]\x01 Aiming is not implemented in this game.");
}
// A return of -1 means no entity was targeted.
case -1:
{
ReplyToCommand(Client, "\x03[Trigger]\x01 No solid entity targeted.");
}
You may want to use your defines here ;) You may also want to pass the argument sizes in the prototype, such as
PHP Code:
TriggerEntity(const Client, const Entity, String:Input[ARG_SIZE], const String:Value[ARG_SIZE], String:ClassName[ARG_SIZE])
sizeof avoids bugs instead of manually passing the size along.
Regardless, seems relatively sane, nice job!