Format in dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Format in dialog (
/showthread.php?tid=491956)
Format in dialog -
AA9 - 01.02.2014
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");
Re: Format in dialog -
InfiniTy. - 01.02.2014
Use
strcat
Re: Format in dialog -
AA9 - 01.02.2014
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]);