- Автор темы
- #1
Возникла проблема, когда я делаю распределение по ценам, в БД эти измнения не идут, а в моде они есть, после рестарта, все меняется на стандартные значения, в чем может быть проблема?
Код:
case 6:
{
for(new h = 0; h < TOTAL_HOUSE; h++)
{
if(HouseInfo[h][hKlass] == 0) HouseInfo[h][hValue] = 300000, HouseInfo[h][hInt] = 1, HouseInfo[h][hExit][0] = 223.1219, HouseInfo[h][hExit][1] = 1287.841, HouseInfo[h][hExit][2] = 1082.141, HouseInfo[h][hStyle] = 1;
else if(HouseInfo[h][hKlass] == 1) HouseInfo[h][hValue] = 550000, HouseInfo[h][hInt] = 6, HouseInfo[h][hExit][0] = 2196.4541, HouseInfo[h][hExit][1] = -1204.37097, HouseInfo[h][hExit][2] = 1049.0229, HouseInfo[h][hStyle] = 2;
else if(HouseInfo[h][hKlass] == 2) HouseInfo[h][hValue] = 900000, HouseInfo[h][hInt] = 10, HouseInfo[h][hExit][0] = 2270.0449, HouseInfo[h][hExit][1] = -1210.494, HouseInfo[h][hExit][2] = 1047.563, HouseInfo[h][hStyle] = 3;
else if(HouseInfo[h][hKlass] == 3) HouseInfo[h][hValue] = 1200000, HouseInfo[h][hInt] = 9, HouseInfo[h][hExit][0] = 2317.8068, HouseInfo[h][hExit][1] = -1026.3859, HouseInfo[h][hExit][2] = 1050.2180, HouseInfo[h][hStyle] = 4;
else if(HouseInfo[h][hKlass] == 4) HouseInfo[h][hValue] = 1600000, HouseInfo[h][hInt] = 5, HouseInfo[h][hExit][0] = 140.2610, HouseInfo[h][hExit][1] = 1366.435, HouseInfo[h][hExit][2] = 1083.859, HouseInfo[h][hStyle] = 5;
else HouseInfo[h][hValue] = 2000000, HouseInfo[h][hInt] = 5, HouseInfo[h][hExit][0] = 140.2610, HouseInfo[h][hExit][1] = 1366.435, HouseInfo[h][hExit][2] = 1083.859, HouseInfo[h][hStyle] = 6;
}
SendClientMessage(playerid, COLOR_GRAD1, "По ценам распределены");
}