forward LoadTurfs();
public LoadTurfs()
{
new tempp[124], TotalTurfs;
cache_get_data(rows, fields);
for(TotalTurfs = 0; TotalTurfs < rows; TotalTurfs++)
{
TurfInfo[TotalTurfs][tID] = cache_get_row_int(TotalTurfs, 0);
TurfInfo[TotalTurfs][tOwned] = cache_get_row_int(TotalTurfs, 1);
TurfInfo[TotalTurfs][tTime] = cache_get_row_int(TotalTurfs, 2);
TurfInfo[TotalTurfs][tMinX] = cache_get_row_float(TotalTurfs, 3);
TurfInfo[TotalTurfs][tMinY] = cache_get_row_float(TotalTurfs, 4);
TurfInfo[TotalTurfs][tMaxX] = cache_get_row_float(TotalTurfs, 5);
TurfInfo[TotalTurfs][tMaxY] = cache_get_row_float(TotalTurfs, 6);
TurfInfo[TotalTurfs][tNr] = cache_get_row_int(TotalTurfs, 7);
TurfInfo[TotalTurfs][tNrSize] = cache_get_row_int(TotalTurfs, 8);
}
printf("%d turfs loaded",TotalTurfs);
return 1;
}