04.06.2015, 06:12
Код:
public LoadDoors() { new string[200], i; static rows,fields; cache_get_data(rows, fields, Connection); for(new ii = 0; ii <= rows; ii++) { i = ii + 1; 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; }