21.03.2015, 00:33
Where is better way to do this?
Column like this?
Code 1:
Or
this?
Code 2:
but is that make load the data in code 2 is much longer than code 1?
Thanks...
Column like this?
Code 1:
pawn Code:
mysql_get_field("vModel", szFile);
sscanf(szFile, "p<|>ddd", vehicleInfo[extraid][0][vModel], vehicleInfo[extraid][1][vModel], vehicleInfo[extraid][2][vModel]);
this?
Code 2:
pawn Code:
mysql_get_field("vModel1", szFile);
vehicleInfo[extraid][0][vModel] = strval(szFile);
mysql_get_field("vModel2", szFile);
vehicleInfo[extraid][1][vModel] = strval(szFile);
mysql_get_field("vModel3", szFile);
vehicleInfo[extraid][2][vModel] = strval(szFile);
Thanks...