02.12.2013, 15:48
It's actually a very simple for(new i; i < ...; i++) loop but something inside is breaking it in a very strange location. As you can see, I did some debugging and the results are here: http://i.imgur.com/HgJL1Dz.png. The SQL plugin used here is Dan's but I think this doesn't matter much. Any help would be appreciated.
PHP код:
printf("rows: %i", rows);
for (new i; i < sizeof(rows); i++)
{
print("1");
sql_get_field_assoc(r, "aeg", result, 24);
print("2");
sql_get_field_assoc(r, "kestvus", kkestvus, 16);
print("3");
format(result, sizeof(result), "%i - %s - %s", sql_get_field_assoc_int(r, "helistaja"), result, kkestvus);
print("4");
format(string, sizeof(string), "%s%s\n", string, result);
print("5");
sql_next_row(r);
print("6");
}
ShowPlayerDialog(playerid, DIALOG_KONELOGI, DIALOG_STYLE_LIST, COL_WHITE"Telefon", string, "Vali", "Tagasi");