#2

Make the line into strings, example:
pawn Код:
new string1[150], string2[150], finalstring[256];
format(string1,sizeof(string1), "Brass Knuckles $10000\nGolf Club $10000\nNite stick $10000\nKnife $10000\nBaseball bat $10000\nShovel $10000\nPool cue $10000\nKatana $10000\nChainsaw $10000\nPurple dildo $10000\nShort vibrator $10000\nLong vibrator $10000\nWhite dildo $10000\ndildo $10000\n");
format(string2,sizeof(string2), "Flowers $10000\nCane $10000\n9mm Pistol $100000\nSilenced pistol $100000\nDesert eagle $100000\nShotgun $100000\nSawn-off shotgun $100000\nCombat shotgun $100000\nMicro Uzi $100000\nMP5 $100000\nAk-47 $100000\nM4 $100000\nTec 9 $100000\nCamera $10000");
format(finalstring, sizeof(finalstring), "%s%s",string1,string2);
ShowPlayerDialog(playerid,222,DIALOG_STYLE_LIST,"Weapons",finalstring,"Open","Close");
You do that because it is too long for one line...
Reply


Messages In This Thread
ammu - by tanush - 01.08.2011, 02:45
Re: ammu - by Dr - 01.08.2011, 02:58
Re: ammu - by Onyx - 01.08.2011, 03:01

Forum Jump:


Users browsing this thread: 1 Guest(s)