Mysql loading only four rows.
#5

IDK if jlalt's thing worked but rewriting those lines with floats might make sense, as if the number is any diffrent from an integer it won't work. The positions are Float's so retrieving them should be as easy as replacing int with float:
PHP код:
stock LoadPlayerVehicles()
{
    new 
query[120];
    
    
mysql_format(g_Handlequerysizeof(query), "SELECT * FROM `vehicles`");
    
mysql_tquery(g_Handlequery"OnLoadVehicles""");
    return 
1;
}
public 
OnLoadVehicles()
{
    for(new 
0cache_get_row_count(); i++)
    {
        
g_VehicleInfo[i][vehicle_ModelID]   = cache_get_field_content_int(i"vehicle_ModelID");
        
g_VehicleInfo[i][vehicle_OwnerID]   = cache_get_field_content_int(i"vehicle_OwnerID");
        
        
g_VehicleInfo[i][vehicle_Color1]    = cache_get_field_content_int(i"vehicle_Color1");
        
g_VehicleInfo[i][vehicle_Color2]    = cache_get_field_content_int(i"vehicle_Color1");
        
        
g_VehicleInfo[i][vehicle_ParkX]    = cache_get_field_content_float(i"vehicle_ParkX");
        
g_VehicleInfo[i][vehicle_ParkX]    = cache_get_field_content_float(i"vehicle_ParkY");
        
g_VehicleInfo[i][vehicle_ParkX]    = cache_get_field_content_float(i"vehicle_ParkZ");
        
g_VehicleInfo[i][vehicle_Angle]    = cache_get_field_content_float(i"vehicle_Angle");
        
        
/*new vehicle = CreateVehicle();
        SetVehicleNumberPlate(vehicle, plate);*/
    
}
    return 
1;

Good luck with your system.
Reply


Messages In This Thread
Mysql loading only four rows. - by k2168 - 01.01.2016, 12:22
Re: Mysql loading only four rows. - by Stones - 01.01.2016, 16:25
Re: Mysql loading only four rows. - by jlalt - 01.01.2016, 16:32
Re: Mysql loading only four rows. - by PrO.GameR - 01.01.2016, 17:31
Re: Mysql loading only four rows. - by nl-videomaster - 01.01.2016, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)