SA-MP Forums Archive
how can i fix this? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how can i fix this? (/showthread.php?tid=202922)



how can i fix this? - armyoftwo - 25.12.2010

i have
pawn Код:
ShowPlayerDialog(playerid, DIALOG_DEALER_MENU, DIALOG_STYLE_LIST, "Weapon Menu", "Silenced 9mm\t\t$2500\nTec9\t\t$1000\nS-O Shotgun\t\t$3500\nSniper Rifle\t\t$15000\nAk47\t\t$8000\nArmor\t\t$500\n3 Blocks of C4\t\t$3500\nParachute\t\t$10000\nM4\t\t$1000\nRifle\t\t$7000\nDesert Eagle\t\t$5000", "Buy", "Exit");
it shows as
M4 5000
Ak-47 3000
Armour 8000
etc..

but i want to it as in one line..
pawn Код:
M4      5000
Ak-47   3000
Armour  8000



Re: how can i fix this? - Mean - 25.12.2010

Use \r

pawn Код:
ShowPlayerDialog(playerid, DIALOG_DEALER_MENU, DIALOG_STYLE_LIST, "Weapon Menu", "Silenced 9mm\r\$2500\nTec9\r\$1000\nS-O Shotgun\r\$3500\nSniper Rifle\r\$15000\nAk47\r\$8000\nArmor\r\$500\n3 Blocks of C4\r\$3500\nParachute\r\$10000\nM4\r\$1000\nRifle\r\$7000\nDesert Eagle\r\$5000", "Buy", "Exit");
try


Re: how can i fix this? - Matanel - 25.12.2010

PHP код:
ShowPlayerDialog(playeridDIALOG_DEALER_MENUDIALOG_STYLE_LIST"Weapon Menu""Silenced 9mm   $2500\r\nTec9   $1000\r\nS-O Shotgun   $3500\r\nnSniper Rifle   $15000\r\nAk47   $8000\r\nArmor   $500\r\nBlocks of C4   $3500\r\nParachute   $10000\r\nM4   $1000\r\nRifle   $7000\r\nDesert Eagle   $5000""Buy""Exit"); 



Re: how can i fix this? - Mean - 25.12.2010

Quote:
Originally Posted by Matanel
Посмотреть сообщение
PHP код:
ShowPlayerDialog(playeridDIALOG_DEALER_MENUDIALOG_STYLE_LIST"Weapon Menu""Silenced 9mm   $2500\r\nTec9   $1000\r\nS-O Shotgun   $3500\r\nnSniper Rifle   $15000\r\nAk47   $8000\r\nArmor   $500\r\nBlocks of C4   $3500\r\nParachute   $10000\r\nM4   $1000\r\nRifle   $7000\r\nDesert Eagle   $5000""Buy""Exit"); 
That will just move everything forward, not just the price, and use [ pawn] [ /pawn] (without spaces)


Re: how can i fix this? - Matanel - 25.12.2010

Quote:
Originally Posted by Mean
Посмотреть сообщение
That will just move everything forward, not just the price, and use [ pawn] [ /pawn] (without spaces)
I prefer to put the price far away weapons.