elishansky
Умник
Приветствую не корректно работает выбор локации в чем проблема
Добавил когда только открывается выбор локации и TD
Ну и это:
PHP:
new ChangeLocations[MAX_PLAYERS];
PHP:
else if(clickedid == derevnyaTD[4])
{
ChangeLocations[playerid] ++;
InterpolateCameraPos(playerid,
YorCitN[locationid][locationpos][0],
YorCitN[locationid][locationpos][1],
YorCitN[locationid][locationpos][2],
YorCitN[locationid][locationpos][3],
YorCitN[locationid][locationpos][4],
YorCitN[locationid][locationpos][5], 7500
);
InterpolateCameraLookAt(playerid,
YorCitN[locationid][locationpos][6],
YorCitN[locationid][locationpos][7],
YorCitN[locationid][locationpos][8],
YorCitN[locationid][locationpos][9],
YorCitN[locationid][locationpos][10],
YorCitN[locationid][locationpos][11], 7500
);
}
else if(clickedid == derevnyaTD[5])
{
ChangeLocations[playerid] --;
InterpolateCameraPos(playerid,
YorCitN[locationid][locationpos][0],
YorCitN[locationid][locationpos][1],
YorCitN[locationid][locationpos][2],
YorCitN[locationid][locationpos][3],
YorCitN[locationid][locationpos][4],
YorCitN[locationid][locationpos][5], 7500
);
InterpolateCameraLookAt(playerid,
YorCitN[locationid][locationpos][6],
YorCitN[locationid][locationpos][7],
YorCitN[locationid][locationpos][8],
YorCitN[locationid][locationpos][9],
YorCitN[locationid][locationpos][10],
YorCitN[locationid][locationpos][11], 7500
);
}
PHP:
ChangeLocations[playerid] = 0;
PHP:
new YorCitN[3][locsa] =
{
{"Los Santos D1", {-890.1176, 1343.3118, 70.1570, -891.0806, 1343.0298, 70.0870,-1011.1813, 992.8902, 63.0626, -1011.9402, 992.2345, 62.9726}}
{"Los Santos D4", {77.9073, 871.0585, 67.4892, 77.0341, 871.5533, 67.3192, 77.0341,-410.6008, 834.3357, -410.2376, 835.2712, 71.0537}},
{"Los Santos D3", {-387.1053, 1210.7615, 92.3104,-386.6542, 1211.6577, 91.9653, -647.7382, 1408.0088, 70.2591, -648.5291, 1408.6263, 70.0091}}
};
