SA-MP Forums Archive
Question regarding Dialog string length. - 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: Question regarding Dialog string length. (/showthread.php?tid=422458)



Question regarding Dialog string length. - rangerxxll - 13.03.2013

So I have a Talent Selection dialog, and it requires a lot of text. So I've decided to do this. (Shown Below.) It works fine and everything. Is this a good idea, or is it a bad idea? If it's a bad idea, please let me know what other options I have with long dialogs.

pawn Код:
CMD:talent(playerid, params[])
{
    new dialogstr[425];
    strcat(dialogstr, "{00FFFF}Tank[100] (You will spawn with 130 health instead of 100.)\n");
    strcat(dialogstr, "{E6E61A}Gold'Digga [250] (You receive twice the rewards upon killing an enemy.)\n");
    strcat(dialogstr, "{DD3522}Vengeance [450] (You will light near-by enemies on fire when you die.)\n");
    strcat(dialogstr, "{7F7F7F}Stealth [650] (You will be completely hidden on the radar.)\n");
    strcat(dialogstr, "{1AFF00}Second Chance [800] (Spawn at death location)\n");
    strcat(dialogstr, "{FF0000}Regeneration [1000] (Regenerate 10 health every 20 seconds.)");
    ShowPlayerDialog(playerid,TALENT_DIALOG,DIALOG_STYLE_LIST, "Talent Selection",dialogstr,"Select","Cancel");
    return 1;
}
Thank you.


Re: Question regarding Dialog string length. - rangerxxll - 14.03.2013

Just bumping, because once it goes onto the second page it becomes long forgotten.


Re: Question regarding Dialog string length. - MP2 - 14.03.2013

Not really sure what you're asking..