YSI-Includes
YSI-Includes copied to clipboard
[y_hooks] hook macro doesn't work with spaces between function name and arguments
hook OnPlayerConnect (playerid)
C:\Users\Kristo Isberg\Documents\Tech_Lights\Tech_Lights.inc:177 (error) expected token: "(", but found "-identifier-"
C:\Users\Kristo Isberg\Documents\Tech_Lights\Tech_Lights.inc:177 (error) expected token: ";", but found "("
4.x or 5.x?
Apparently both.
Both indeed. Preprocessor output (5.x):
forward @yH_OnPlayerConnect @003(playerid);@yH_OnPlayerConnect @003(playerid)
Ahh yes, of course that's why! That's helpful.
OK, I'm a bit stumped actually, the idea I had didn't work, so I need to think some more.