13.10.2010, 09:29
So like this?
but that doesnt look rigt to me...looks like it it run that code in the while loop for every row on each loop :S
pawn Код:
for(new i=0; i<orgVehs; i++){
while(mysql_retrieve_row()){
new data[128];
mysql_fetch_field_row(data, "ID");
orgVeh[i][vID] = strval(data);
mysql_fetch_field_row(data, "model");
orgVeh[i][vModel] = strval(data);
mysql_fetch_field_row(data, "x");
orgVeh[i][vX] = strval(data);
mysql_fetch_field_row(data, "y");
orgVeh[i][vY] = strval(data);
mysql_fetch_field_row(data, "z");
orgVeh[i][vZ] = strval(data);
mysql_fetch_field_row(data, "angle");
orgVeh[i][vAngle] = strval(data);
mysql_fetch_field_row(data, "orgID");
orgVeh[i][vOrgID] = strval(data);
}
}