Tabsize strings.
#9

Maybe not pr0 but works ;d ;p
pawn Код:
if(listitem == 0)
{
    new CarList[1056];
    for(new All = 0; All < sizeof(HouseCarTwoWheels); All++)
    {
        format(carname,sizeof(carname),GetVehicleName[HouseCarTwoWheels[All][0]-400]);
        new len = strlen(carname);
        MissingChars=MaxLetters-len;
        MissingTabs=MissingChars/TabSize;
        if(6 < len < 9) MissingTabs--;
        if(pS[Bank] >= 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");
}
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: 1 Guest(s)