10.12.2016, 22:09
Nice script, I'd be really grateful if you explain how do the bits from vehicle_model_parts work. I remember ****** or Slice mentioned it a long time ago, but I can't find the thread anymore.
I'm interested on the next query also:
By the way, why mysql_tquery instead of mysql_pquery? Supposing two players access the menu at once I guess multithreading would be okay here.
I'm interested on the next query also:
PHP код:
mysql_format(g_SQL, Query, sizeof Query,
"SELECT " \
"IF(parts & 1 <> 0,'Exhausts','')," \
"IF(parts & 2 <> 0,'Hood','')," \
"IF(parts & 4 <> 0,'Hydraulics','')," \
"IF(parts & 8 <> 0,'Lights','')," \
"IF(parts & 16 <> 0,'Roof','')," \
"IF(parts & 32 <> 0,'Side Skirts','')," \
"IF(parts & 64 <> 0,'Spoilers','')," \
"IF(parts & 128 <> 0,'Vents','')," \
"IF(parts & 256 <> 0,'Wheels','') " \
"FROM vehicle_model_parts WHERE modelid=%i", modelid);

