View Single Post
xerox8521
Senior Member
Join Date: Sep 2011
Old 10-15-2022 , 14:28   Re: How to create properly a native for a bool value?
Reply With Quote #4

No, notice the red missing paranthesis after RankedMatch. You were calling it like variable instead of a function thus causing the error.

One thing I would personally change is to rename the native to IsRankedMatch and then later call it with if( IsRankedMatch() ).
If you use SM 1.11 (not sure if this was already a thing in 1.10) you can use any for the native callback. In the include you can then change it to bool instead of int.

Last edited by xerox8521; 10-15-2022 at 14:29.
xerox8521 is offline