01.05.2013, 00:59
Hello,
I tried this, but that does not work..
How can it be done?
Help Me, thank you
I tried this, but that does not work..
Код:
mysql_function_query(g_Handle, "SELECT * FROM vehicules", true, "SQL_Load_Vehicules", ""); forward SQL_Load_Vehicules(); public SQL_Load_Vehicules() { new nb=0, rows, fields, donnees[50]; while(cache_get_data(rows, fields, g_Handle)) { nb++; cache_get_field_content(0, "idVehicule", donnees); Vehicules[nb][vIdVehicule] = strval(donnees); cache_get_field_content(0, "pX", donnees); Vehicules[nb][vPx] = floatstr(donnees); cache_get_field_content(0, "pY", donnees); Vehicules[nb][vPy] = floatstr(donnees); cache_get_field_content(0, "pZ", donnees); Vehicules[nb][vPz] = floatstr(donnees); cache_get_field_content(0, "couleur1", donnees); Vehicules[nb][vCouleur1] = strval(donnees); cache_get_field_content(0, "couleur2", donnees); Vehicules[nb][vCouleur2] = strval(donnees); AddStaticVehicleEx(Vehicules[nb][vIdVehicule], Vehicules[nb][vPx], Vehicules[nb][vPy], Vehicules[nb][vPz], Vehicules[nb][vAngle], Vehicules[nb][vCouleur1], Vehicules[nb][vCouleur2], -1); } totalvehicules = nb; return 1; }
Help Me, thank you