18.12.2016, 20:11
Hmm, this is confusing. I understand what you're trying to do but I'm not sure if it can be solved. Perhaps if you swap SMS and MAX_SMS. This line is obviously the culprit:
Because here i refers to the index of Message, not to the index of SMS. If that makes sense. So when row 0 is retrieved it writes "Hello" into message starting at index 0. When row 1 is retrieved it writes "Good job" into message starting at index 1, thereby overwriting what was already there. So the string is now "HGood job". This continues for however many rows there are.
PHP код:
cache_get_field_content(i, "Message", pSMS[playerid][Message][i], .max_len = 128);