[MySql - Help] How can I stop the A_I from missing numbers?
#9

So like this?

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


    }
}
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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)