I found that your function must declare a float argument like (float dt), even if you are not going to use it, otherwise you can’t use the schedule.
my original function:
I changed to:
void createWave(float dt);
then I can schedule it:
Also your class has to be a child of a coco2d-x object/node. if it’s any other class you can’t schedule it.