Tabsize strings.
#5

It works but there is only one problem, and I cannot find the cause of that.
But I will show you my onplayerdialog part.
Код:
new HouseCarTwoWheels[11][2] = {
{509,580},
{481,380},
{510,650},
{462,4500},
{581,20000},
{522,56000},
{461,26000},
{463,25000},
{586,30000},
{468,15000},
{471,8000}
};

// ondialog >>
	        if(listitem == 0)
	        {
	            new CarList[1056];
	        	for(new All = 0; All < sizeof(HouseCarTwoWheels); All++)
	        	{
					format(carname,sizeof(carname),GetVehicleName[HouseCarTwoWheels[All][0]-400]);
					MissingChars=MaxLetters-strlen(carname);
					MissingTabs=MissingChars/TabSize;
	        	    if(pS[Bank] >= strval(HouseCarTwoWheels[All][1]))
	        	    {
						format(CarList,sizeof(CarList),"%s{FFFFFF}%s%s ${00FF00}%d\n",CarList,carname,Tabs[MissingTabs],HouseCarTwoWheels[All][1]);
					}
					else
					{
						format(CarList,sizeof(CarList),"%s{FFFFFF}%s%s ${FF0000}%d\n",CarList,carname,Tabs[MissingTabs],HouseCarTwoWheels[All][1]);
					}
	        	}
				return ShowPlayerDialog(playerid,HouseDialog+4,DIALOG_STYLE_LIST,"{A80000}Upgrade your house car. Choose a vehicle.",CarList,"Buy","Back");
	        }
screen :
Reply


Messages In This Thread
Tabsize strings. - by KaleOtter - 10.01.2011, 17:06
Re: Tabsize strings. - by woot - 10.01.2011, 17:10
Re: Tabsize strings. - by Babul - 10.01.2011, 17:34
Re: Tabsize strings. - by KaleOtter - 10.01.2011, 18:50
Re: Tabsize strings. - by KaleOtter - 10.01.2011, 19:07
Re: Tabsize strings. - by Babul - 10.01.2011, 22:28
Re: Tabsize strings. - by ғαιιοцт - 10.01.2011, 23:26
Re: Tabsize strings. - by Babul - 11.01.2011, 00:47
Re: Tabsize strings. - by Jefff - 11.01.2011, 01:01
Re: Tabsize strings. - by KaleOtter - 11.01.2011, 12:42

Forum Jump:


Users browsing this thread: 3 Guest(s)