09.12.2014, 12:06
You can still concatenate a whole row into a single string and use sscanf to split it up again (kind of pointless, but if you prefer it this way, okay):
Код:
public OnDataLoad() { new rows = cache_num_rows(), fields = cache_num_fields(); for(new r; r < rows; r++) { new data[2048], field_tmp[128]; for(new f; f < fields; f++) { cache_get_row(r, f, field_tmp); if(f != 0) strcat(data, "|"); strcat(data, field_tmp); } sscanf(data, "...", PlayerData[r]); } }