While sql
#1

Hello,

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;
}
How can it be done?
Help Me, thank you
Reply


Messages In This Thread
While sql - by Noliax8 - 01.05.2013, 00:59
Re : While sql - by Noliax8 - 01.05.2013, 09:46
Re: While sql - by Vince - 01.05.2013, 10:00
Re : While sql - by Noliax8 - 01.05.2013, 10:39

Forum Jump:


Users browsing this thread: 1 Guest(s)