I cant get the prices to line up properly help - 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: I cant get the prices to line up properly help (
/showthread.php?tid=396074)
I cant get the prices to line up properly help -
NinjaChicken - 29.11.2012
ok i have a /buy cmd and when its typed this shows but i can't get the $** to line up vertically please help
pawn Код:
ShowPlayerDialog(playerid, STOREMENU, DIALOG_STYLE_LIST, "24/7", "Cell Phone $50\nPhone Book $25\nDice $10\nCondom $5\nCD Player $40\nSpraycan $15\nRope $30\nCigar $40\nSprunk $8\nVehicle Lock $1000\nPortable Radio $500\nCamera $90\nLottery Ticket $10\nCheckbook $20\nMask $50\nBoombox $1000\nSuitCase $500", "Buy", "Cancel");
Re: I cant get the prices to line up properly help -
showarn - 29.11.2012
Try this
Код:
CMD:buy(playerid, params[])
{
if(!IsAt247(playerid))
{
SendClientMessageEx(playerid, COLOR_GRAD2, " You are not in a 24-7!");
return 1;
}
if(PlayerInfo[playerid][pDonateRank] >= 1)
{
ShowPlayerDialog(playerid, STOREMENU, DIALOG_STYLE_LIST, "24/7", "Cell Phone $400\nPhone Book $4000\nDice $400\nCondom $40\nCD Player $40\nSpraycan $160\nRope $800\nCigar $40\nSprunk $8\nVehicle Lock $4000\nPortable Radio $40000\nCamera $160\nLottery Ticket $800\nCheckbook $400", "Buy", "Cancel");
}
else
{
ShowPlayerDialog(playerid, STOREMENU, DIALOG_STYLE_LIST, "24/7", "Cell Phone $500\nPhone Book $5000\nDice $500\nCondom $50\nCD Player $50\nSpraycan $200\nRope $1000\nCigar $50\nSprunk $10\nVehicle Lock $5000\nPortable Radio $50000\nCamera $200\nLottery Ticket $1000\nCheckbook $500", "Buy", "Cancel");
}
return 1;
}
Re: I cant get the prices to line up properly help -
NinjaChicken - 29.11.2012
nope,
Re: I cant get the prices to line up properly help -
Kitten - 29.11.2012
I'd not recommend this but something like this?
pawn Код:
new str[128]; // Or however big it is
strcat(str,"Cell Phone $400\nDice $400\n so on count the spaces!");
ShowPlayerDialog(playerid, STOREMENU,str,"Buy","Close");
Re: I cant get the prices to line up properly help -
NinjaChicken - 29.11.2012
im not sure aye, they were all lined up and then i removed a 0 of each end now they all crazy and i dont know how to get them back inline is confuses me
Re: I cant get the prices to line up properly help -
Abreezy - 29.11.2012
Just use \t For tabs instead of using spaces