Column mysql
#1

Where is better way to do this?

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]);
Or

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);
but is that make load the data in code 2 is much longer than code 1?

Thanks...
Reply


Messages In This Thread
Column mysql - by qmnty - 21.03.2015, 00:33
Re: Column mysql - by mirou123 - 21.03.2015, 09:54
Re: Column mysql - by Vince - 21.03.2015, 10:07
Re: Column mysql - by mirou123 - 21.03.2015, 10:14

Forum Jump:


Users browsing this thread: 1 Guest(s)