Closed ghost closed 5 years ago
You need to know the types of parameters in advance, they can't be determined at runtime. This is why functions like SetTimerEx
and CallLocalFunction
have a string parameter that describes the types of arguments passed to them.
For example, you could make a map of callbacks where keys are function names and values are parameter info, and the look up that info based on the name
parameter.
@Zeex ok, thank you
I am create a callback map
Hello I have a question on the type of data
In the "OnPublicCall" callback, there is an argument "params", which contains an array of parameters, but there is no information about the data type of the parameter
How to determine the data type of a variable?
Example
Code:
Ouput:
In
OnIncomingConnection(PARAM #0:0, PARAM #1:0, PARAM #2:50665, )
second params (PARAM#1) must be string, but I don't know how to determine this