Приветствую всех, почему то не скрепляет строку и в конечном итоге, выводит один счет (в базе их 2)
Пожалуйста помогите)
Код:
PHP код:
forward bank_score(playerid);
public bank_score(playerid)
{
new rows, fields, str[200];
cache_get_data(rows, fields);
if(rows)
{
static text_in_dialog[] = "Ваши счета";
for(new r; r < rows; r++)
{
SendClientMessageToAll(-1, "5");
cache_get_field_content(r, "expense_holder", pInfo[r][pName], mysql_connect_ID, 24);
new ID_score = cache_get_field_content_int(r, "ID_Expense", mysql_connect_ID);
SendClientMessageToAll(-1, "6");
format(str, sizeof str, "%d \t %s", ID_score, pInfo[r][pName]);
strcat(text_in_dialog, str);
SendClientMessageToAll(-1, "7");
}
ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "{FFAA00}Банковский счета", text_in_dialog, "Выход", "");
}
}
Заранее спасибо!