all rows
#1

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;

Reply


Messages In This Thread
all rows - by saffierr - 04.01.2017, 00:15
Re: all rows - by BiosMarcel - 04.01.2017, 00:20
Re: all rows - by saffierr - 04.01.2017, 00:23
Re: all rows - by BiosMarcel - 04.01.2017, 00:25
Re: all rows - by saffierr - 04.01.2017, 00:29
Re: all rows - by BiosMarcel - 04.01.2017, 00:34
Re: all rows - by Lordzy - 04.01.2017, 00:39
Re: all rows - by BiosMarcel - 04.01.2017, 00:44
Re: all rows - by saffierr - 04.01.2017, 00:52
Re: all rows - by Jefff - 04.01.2017, 00:59

Forum Jump:


Users browsing this thread: 1 Guest(s)