21.03.2013, 13:30
Hey,
I was trying to utilise tagof to pass a float/integer or a string value using one function.
It works great for integer and float values, however I have no idea how to check if its a string or if its even possible.
This is the body of the function:
Inside the function I'm using switch to check the tag of the value.
Any ideas? or is it even possible to do what I'm trying?
I was trying to utilise tagof to pass a float/integer or a string value using one function.
It works great for integer and float values, however I have no idea how to check if its a string or if its even possible.
This is the body of the function:
pawn Код:
stock MySQL_SaveCharacterStat(playerid, E_CHARACTER_INFO:stat, field[], {_, Float}:value, type = tagof(value))
Any ideas? or is it even possible to do what I'm trying?