Format in dialog
#1

So i have a little problem with mi contact system. It should show so many rows in dialog, but it shows only last inserted contact.
pawn Код:
for(new i = 1; i < kontakte_loodud; i++)
        {
        if(koInfo[i][Telefon] == PlayerInfo[playerid][pNumber])
        {
        format(string, sizeof(string), "Kontakti nimi: %s || Number: %d\n", koInfo[i][Kontakt],koInfo[i][Number]);
        ShowPlayerDialog(playerid, 444, DIALOG_STYLE_LIST, "Kontaktid",string, "Vali", "Tagasi");
Reply
#2

Use strcat
Reply
#3

Thanks you reminded me, i did same, what i did long ago with mysql_query under OnPlayerDisconnect callback

pawn Код:
format(string, sizeof(string), "%sKontakti nimi: %s || Number: %d\n",string, koInfo[i][Kontakt],koInfo[i][Number]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)