17.03.2018, 14:42
You are fetching an integer but passing an array (string) to the function, thus a type mismatch. What you need to do is using the variable directly:
Also this is pretty helpful: https://sampwiki.blast.hk/wiki/MySQL
PHP код:
format(szField, sizeof(szField), "pt%dBone", i);
cache_get_value_name_int(row, szField, PlayerToyInfo[extraid][i][ptBone]);