10.01.2011, 19:07
It works but there is only one problem, and I cannot find the cause of that.
But I will show you my onplayerdialog part.
screen :
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"); }