fetch bool MySQL r7
#1

Hey guys, I need some help, I'm trying to fetch boolean using MySQL r7.
Is it possible?

Btw, I searched and I asked on BlueG topic and I didn't find any answer.
Reply
#2

Don't know if it's possible, but you can just use 1 or 0 with a tinyint as the data type.
Reply
#3

The point is, I'm using y_cmd, and I want to give a permission to someone use this command.

Command_SetPlayerNamed("command", playerid, true);

how should I do that using MySQL?
Reply
#4

pawn Код:
new content[2];

cache_get_row(0, 0, content);

if(strval(content)) {
    Command_SetPlayerNamed("command", playerid, true);
}
Reply
#5

1 is true and 0 is false. I don't see the problem. If it complains about tag mismatch, then override the tag with bool:.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)