I cant get the prices to line up properly help
#1

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");
Reply
#2

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;
}
Reply
#3

nope,
Reply
#4

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");
Reply
#5

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
Reply
#6

Just use \t For tabs instead of using spaces
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)