[MySQL R41-2] Is there any way to retrieve a bool value from my DB?
#2

Quote:
Originally Posted by nikotragedy
Посмотреть сообщение
I have a bool variable which determines if the player is either dead or alive, but I have no idea how can I obtain those values.

I was thinking about converting the boolean into a int, but that would screw up my code.
Any idea?

Edit 1: Nevermind, I was reading documentation but there was nothing about a cache_get_value_bool, I just tried because I had nothing else to try and it's compiling.
I was looking for this as well and found out this in a_mysql.inc

pawn Код:
#define cache_get_value_bool(%1) cache_get_value_int(%1)
There'd be no difference if you'd use cache_get_value_int as you see but guess it's going to be more clear in the script that it's a bool value.
Reply


Messages In This Thread
[MySQL R41-2] Is there any way to retrieve a bool value from my DB? - by nikotragedy - 17.03.2017, 06:58
Re: [MySQL R41-2] Is there any way to retrieve a bool value from my DB? - by Cypress - 17.03.2017, 07:28

Forum Jump:


Users browsing this thread: 1 Guest(s)