04.01.2017, 00:15
I don't see why this isn't loading all the rows I've got in my table? everything after the 6th row isn't being loaded...
PHP Code:
forward LoadServerVehicles();
public LoadServerVehicles()
{
if(cache_get_row_count() < 1) return 1;
new rows = cache_get_row_count(), row = 0;
while(row < rows)
{
new vid = cache_get_field_content_int(row, "ID");
ServerVeh[vid][svModel] = cache_get_field_content_int(row, "Model");
ServerVeh[vid][svX] = cache_get_field_content_float(row, "X");
ServerVeh[vid][svY] = cache_get_field_content_float(row, "Y");
ServerVeh[vid][svZ] = cache_get_field_content_float(row, "Z");
ServerVeh[vid][svA] = cache_get_field_content_float(row, "A");
ServerVeh[vid][svC1] = cache_get_field_content_int(row, "C1");
ServerVeh[vid][svC2] = cache_get_field_content_int(row, "C2");
CreateVehicle(ServerVeh[vid][svModel], ServerVeh[vid][svX], ServerVeh[vid][svY], ServerVeh[vid][svZ], ServerVeh[vid][svA], ServerVeh[vid][svC1], ServerVeh[vid][svC2], -1);
row++;
}
return 1;
}