MySQL Doesn't load the last row in the database
#4

Код:
public LoadDoors()
{
	new string[200];
    static rows,fields;
	cache_get_data(rows, fields, Connection);
	for(new i = 0; i < rows; i++)
	{
	    Doors++;
        dInfo[i][dIndex] = cache_get_field_content_int(i,"ID");
	    dInfo[i][dPickup] = cache_get_field_content_int(i,"Pickup");
	    dInfo[i][dPos][0] = cache_get_field_content_float(i,"X");
	    dInfo[i][dPos][1] = cache_get_field_content_float(i,"Y");
	    dInfo[i][dPos][2] = cache_get_field_content_float(i,"Z");
	    dInfo[i][dPos][3] = cache_get_field_content_float(i,"XX");
	    dInfo[i][dPos][4] = cache_get_field_content_float(i,"YY");
	    dInfo[i][dPos][5] = cache_get_field_content_float(i,"ZZ");
	    cache_get_field_content(i,"Text",dInfo[i][dText],Connection,64);
    }
    format(string,sizeof(string),"Loaded %d doors",Doors);
    print(string);
    Doorss = Doors;
    SpawnDoors();
    return 1;
}
Try this, you were +1 it and this is why it couldn't reach the last row.
Reply


Messages In This Thread
MySQL Doesn't load the last row in the database - by SandKing94 - 04.06.2015, 06:12
Re: MySQL Doesn't load the last row in the database - by iZN - 04.06.2015, 07:08
Re: MySQL Doesn't load the last row in the database - by SandKing94 - 04.06.2015, 07:10
Re: MySQL Doesn't load the last row in the database - by jihadmeneer - 04.06.2015, 07:19
Re: MySQL Doesn't load the last row in the database - by SandKing94 - 04.06.2015, 07:48

Forum Jump:


Users browsing this thread: 1 Guest(s)