11.01.2011, 01:01
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");
}