Detecting strings using tagof
#1

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:

pawn Код:
stock MySQL_SaveCharacterStat(playerid, E_CHARACTER_INFO:stat, field[], {_, Float}:value, type = tagof(value))
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?
Reply


Messages In This Thread
Detecting strings using tagof - by Maxips2 - 21.03.2013, 13:30
Re: Detecting strings using tagof - by Misiur - 21.03.2013, 13:33
Re: Detecting strings using tagof - by Maxips2 - 21.03.2013, 13:38
Re: Detecting strings using tagof - by Misiur - 21.03.2013, 13:42
Re: Detecting strings using tagof - by Maxips2 - 21.03.2013, 14:01
Re: Detecting strings using tagof - by Maxips2 - 21.03.2013, 14:10
Re: Detecting strings using tagof - by Misiur - 21.03.2013, 14:21
Re: Detecting strings using tagof - by Maxips2 - 21.03.2013, 14:22
Re: Detecting strings using tagof - by Misiur - 21.03.2013, 14:28

Forum Jump:


Users browsing this thread: 4 Guest(s)