View Full Version : MySQL fetching a boolean value

24/01/2015, 09:06 PM
Hey all! I tried to find a function for fetching a boolean value from a cache and I haven't found a solution yet.
I'm using the latest MySQL plugin from BlueG and I've only found functions for getting an integer and float values and strings. (cache_get_field_content and other functions)
Can someone tell a proper way to do this? Thank you!

24/01/2015, 09:39 PM
Probaj ovo...(Try this...)

new bool:test;
test =!!cache_get_field_content_int(0, "test");


new bool:test;

if(cache_get_field_content_int(0, "test")) test = true;
else test = false;

25/01/2015, 09:48 AM
Alright, thanks for the answer!
I should read other posts where people asked the same question, and Vince told the answer on one of the threads so here's the solution:
PlayerInfo[playerid][pShoot] = bool:cache_get_field_content_int(0, "ShootInd", mysql);

25/01/2015, 10:05 AM
No problem, glad you fixed your issue