SA-MP Forums Archive
Dialog_List Problem String! - 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: Dialog_List Problem String! (/showthread.php?tid=467887)



Dialog_List Problem String! - Akcent_Voltaj - 05.10.2013

how can i make so its one list??plz help!if its one string then it appears error that string is too long..plz help..

Thx.


Re: Dialog_List Problem String! - xXShadowXx - 05.10.2013

pawn Код:
strcat(string,"{CCB3FF}Din ce Judet faci parte?","{FF0000}1.Alba\n2.Arad\n3.Arges\n4.Bacau\n5.Bihor\n6.Bistrita-Nasaud\n7.Botosani\n8.Braila\n9.Brasov\n",sizeof(string));
strcat(string,"{CCB3FF}Din ce Judet faci parte?","{FF0000}\n10.Buzau\n11.Calarasi\n12.Caras-Severin\n13.Cluj\n14.Constanta\n15.Covasna\n16.Dambovita\n17.Dolj\n18.Galati\n19.Giugiu\n",sizeof(string));
strcat(string,"{CCB3FF}Din ce Judet faci parte?","{FF0000}\n20.Gorj\n21.Harghita\n22.Hunedoara\n23.Ialomita\n24.Iasi\n25.Ilfov\n26.Maramures\n27.Mehedinti\n28.Mures\",sizeof(string));
strcat(string,"
n29.Neamt\n30.Olt\n31.Prahova\n32.Salaj\n33.Satu Mare\n34.Sibiu\n35.Suceava\n36.Teleorman\n37.Timis\n38.Tulcea\n39.Valcea\n40.Vaslui\n41.Vrancea\n",sizeof(string));



Re: Dialog_List Problem String! - DanishHaq - 05.10.2013

@xXShadowXx - Don't post if you're not sure...

On topic, here:

pawn Код:
new string[2500]; // idk if it's this much...
strcat(string, "{FF0000}1.Alba\n2.Arad\n3.Arges\n4.Bacau\n5.Bihor\n6.Bistrita-Nasaud\n7.Botosani\n8.Braila\n9.Brasov");
strcat(string, "{FF0000}\n10.Buzau\n11.Calarasi\n12.Caras-Severin\n13.Cluj\n14.Constanta\n15.Covasna\n16.Dambovita\n17.Dolj\n18.Galati\n19.Giugiu");
strcat(string, "{FF0000}\n20.Gorj\n21.Harghita\n22.Hunedoara\n23.Ialomita\n24.Iasi\n25.Ilfov\n26.Maramures\n27.Mehedinti\n28.Mures\n29.Neamt\n30.Olt\n31.Prahova\n32.Salaj");
strcat(string, "{FF0000}\n33.Satu Mare\n34.Sibiu\n35.Suceava\n36.Teleorman\n37.Timis\n38.Tulcea\n39.Valcea\n40.Vaslui\n41.Vrancea");
ShowPlayerDialog(playerid, 51, DIALOG_STYLE_LIST, string, "Ok", "");



Re: Dialog_List Problem String! - Akcent_Voltaj - 05.10.2013

Thx.


Re: Dialog_List Problem String! - DanishHaq - 05.10.2013

edited