11.03.2019, 05:16
you can also use format though.
Example:
Example:
PHP Code:
for(new i, j = MAX_SIZE; i < j; i++){
new stringParser[5 + 2]; // 5 = 4 characters + null then 2 integers since there are only 12 slots for guns. Just an example
format(stringParser, size of stringParser, "Guns%d", i); // parsing string from 0 to 11
cache_get_value(0, stringParser, PlayerData[playerid][guns][i]); // this might make errors, so if it does. Just add that error here. If not problem solved
}