PHP Code:
HookSingleEntityOutput(entity, "OnUser1", OnGrenadeThink);
SetVariantString("OnUser2 !self:FireUser1::0.5:-1");
AcceptEntityInput(entity, "AddOutput");
AcceptEntityInput(entity, "FireUser2");
I'm using this in order to create a 0.5 timer, and on OnGrenadeThink I'm creating a particle and re-firing user2 so it repeats until the entity dies.
For some reason sometimes I get this error:
PHP Code:
[SM] Exception reported: Not enough space on the stack
[SM] Call stack trace:
[SM] [1] Line 421, D:\test.sp::OnGrenadeThink
[SM] [3] AcceptEntityInput
The last 2 lines are repeating for ~850 times which is flooding my error log until the server crashes.
What causes the problem? Thanks!