28.05.2018, 12:06
Hi
I have an question about saving values with 0,1..For example i have for licences few variables.I use just 0 and 1(1-Player have license | 0-Player don't have license)
And now i have new variable for all license
Etc,etc..
Is it good?Or there have better way?For example i'm think about this:
Make an string,text and then use something like this
For example it means that player don't have ShipLicense and MotorLicense..But i don't know is better to have more int variables,or an string variable(text in mysql) and then use sscanf maybe?
Thanks in advance
I have an question about saving values with 0,1..For example i have for licences few variables.I use just 0 and 1(1-Player have license | 0-Player don't have license)
And now i have new variable for all license
Quote:
ShipLicense DrivingLicense MotorLicense AircraftLicense WeaponLicense |
Is it good?Or there have better way?For example i'm think about this:
Make an string,text and then use something like this
Код:
0,1,0,1,1
Thanks in advance