13.03.2019, 15:31
I've been working on a script and throughout this process I have 3 questions on my mind...
How would you create your own function that returns multiple variables and stores them inside the function caller?
For example, GetPlayerPos(playerid, x, y, z);
How can you create a function that accepts multiple and different types parameters?
For instance, the function can be called with the first 2 parameters being a float, but there can be situations where it is 6 parameters and them all being a string or integer only. Like this
Is there, or is it possible to create a function that triggers functions? CallRemoteFunction triggers callbacks but not functions, which is unfortunate....
How would you create your own function that returns multiple variables and stores them inside the function caller?
For example, GetPlayerPos(playerid, x, y, z);
How can you create a function that accepts multiple and different types parameters?
For instance, the function can be called with the first 2 parameters being a float, but there can be situations where it is 6 parameters and them all being a string or integer only. Like this
Code:
testfunction("si", "test", 1.0);

