SA-MP Forums Archive
Saving & Loading BitFlags with MySql - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Saving & Loading BitFlags with MySql (/showthread.php?tid=440879)



Saving & Loading BitFlags with MySql - Swimor - 31.05.2013

Saving & Loading BitFlags with MySql

Hello,
I'm using Slices ButFlags to store boolean information about player,
How I can save it to MySql Database?

The question is not how to use UPDATE, the question is what type of the BitFlags and how save & load them...

Thanks,
rafael.


Re: Saving & Loading BitFlags with MySql - Vince - 31.05.2013

They're just integers.


Re: Saving & Loading BitFlags with MySql - Swimor - 31.05.2013

so
g_PlayerFlags[playerid][SOME_FLAG] is 1 if ON of 0 if OFF?