MYSQL BOOL variables.
#1

Hi,

I have variables with bool: (false,true). And i want to save that variables and load with mysql. How it look like? i use sscanf in loading.
Reply
#2

Well, you could do something like creating a column for that, and setting it to either 1 or 0 (1 being true, 0 being false) and then when a player connects, check if the field data is either 1 or 0, then set the bool.

There may be a better way to do this, but this was all I could think of.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)