Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

как увиличить лимит авто

Сен
299
492
Активный
как увиличить лимит авто чтобы можно было иметь больше автомобилей
 
Сен
299
492
Активный
Советую кинуть команду cars сюда, если не поймешь, какая именно переменная играет роль в ограничении.
stock CarsMenuCEF(playerid)
{
HideInvent(playerid);
HideHud(playerid);
format(temp_str, 128, "SELECT * FROM ownable WHERE BINARY Owner = '%s'", PN(playerid));
new Cache:result = mysql_query(mysql, temp_str), count, carid;
count = cache_get_row_count(mysql);
temp_str = "";
for new idx; idx < count; idx++ do
{
ShowCar[playerid][idx] = cache_get_row_int(idx, 0, mysql);
carid = OnPlayerCarLoad( ShowCar[playerid][idx] );
if !carid *then
f(temp_str, sizeof temp_str, "%s{ \"id\": %i, \
\"outerId\": -1, \
\"typeId\": 1, \
\"title\": \"%s\", \
\"status\": 0, \
\"numberPlate\": \"_\", \
\"numberPlateType\": 1, \
\"mileage\": 0, \
\"price\": 2500000, \
\"lock\": 0, \
\"engine\": 0, \
\"signaling\": 0, \
\"ownerName\": \"%s\", \
\"intermediary\": \"\", \
\"fuelName\": \"A-92\", \
\"fuelRate\": 0, \
\"state\": 99, \
\"taxCurrent\": 3000, \
\"taxLimit\": 60000, \
\"improvements\": 0, \
\"finesAmount\": 0 }", temp_str, idx, GetVehicleName(cache_get_row_int(idx, 1, mysql), true));

else
{
f(temp_str, sizeof temp_str, "%s{ \"id\": %i, \
\"outerId\": %i, \
\"typeId\": 1, \
\"title\": \"%s\", \
\"status\": 1, \
\"numberPlate\": \"\", \
\"numberPlateType\": 0, \
\"mileage\": %f, \
\"price\": %d, \
\"lock\": %d, \
\"engine\": %d, \
\"signaling\": 0, \
\"ownerName\": \"%s\", \
\"intermediary\": \"\", \
\"fuelName\": \"A-92\", \
\"fuelRate\": 0, \
\"state\": 100, \
\"taxCurrent\": 3000, \
\"taxLimit\": 60000, \
\"improvements\": 0, \
\"finesAmount\": 0 }", temp_str, idx, carid, GetVehicleName(carid), CarInfo[carid][cMilage], CarInfo[carid][cCost], GetDoorsStatus(carid), GetEngineStatus(carid), CarInfo[carid][cOwner]);
}
if(count >= 10) strcat(temp_str, ",");
}
if !count *then return SCM(playerid, COLOR_OLDRED, !"[Îøèáêà] {FFFFFF}Ó âàñ íåò ëè÷íîãî òðàíñïîðòà!");
if(count >= 10) strdel(temp_str,strlen(temp_str)-1,strlen(temp_str));
ExecuteEvent(playerid, 1, "vue.set('vehicle');");
ExecuteEvent(playerid, 1, "vue.call('vehicle/loadTypes', '[{\"id\":1,\"icon\":\"car.svg\"},{\"id\":2,\"icon\":\"motorcycle.svg\"},{\"id\":3,\"icon\":\"airplane.svg\"},{\"id\":4,\"icon\":\"ship.svg\"}]');");
ExecuteEventf(playerid, 1, "vue.call('vehicle/loadVehicles', '[%s]');", temp_str);
cache_delete(result, mysql);
return SetFocusBrowser(playerid, 1, true);
 
Дек
286
278
Заблокированный
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки. Мы не несем ответственности за действия пользователя вне форума.
Чтобы увеличить лимит авто, тебе нужен лаунчераддон, или его кряк)
 
Фев
63
35
Пользователь
OFFTOP

Чтобы увеличить лимит авто, тебе нужен лаунчераддон, или его кряк)

OFFTOP


Человек объяснил конкретно, что ему нужно.

типо что доступно обычному игроку только 2 машины
я хочу сделать чтобы было больше

 
Дек
286
278
Заблокированный
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки. Мы не несем ответственности за действия пользователя вне форума.
stock CarsMenuCEF(playerid)
{
HideInvent(playerid);
HideHud(playerid);
format(temp_str, 128, "SELECT * FROM ownable WHERE BINARY Owner = '%s'", PN(playerid));
new Cache:result = mysql_query(mysql, temp_str), count, carid;
count = cache_get_row_count(mysql);
temp_str = "";
for new idx; idx < count; idx++ do
{
ShowCar[playerid][idx] = cache_get_row_int(idx, 0, mysql);
carid = OnPlayerCarLoad( ShowCar[playerid][idx] );
if !carid *then
f(temp_str, sizeof temp_str, "%s{ \"id\": %i, \
\"outerId\": -1, \
\"typeId\": 1, \
\"title\": \"%s\", \
\"status\": 0, \
\"numberPlate\": \"_\", \
\"numberPlateType\": 1, \
\"mileage\": 0, \
\"price\": 2500000, \
\"lock\": 0, \
\"engine\": 0, \
\"signaling\": 0, \
\"ownerName\": \"%s\", \
\"intermediary\": \"\", \
\"fuelName\": \"A-92\", \
\"fuelRate\": 0, \
\"state\": 99, \
\"taxCurrent\": 3000, \
\"taxLimit\": 60000, \
\"improvements\": 0, \
\"finesAmount\": 0 }", temp_str, idx, GetVehicleName(cache_get_row_int(idx, 1, mysql), true));

else
{
f(temp_str, sizeof temp_str, "%s{ \"id\": %i, \
\"outerId\": %i, \
\"typeId\": 1, \
\"title\": \"%s\", \
\"status\": 1, \
\"numberPlate\": \"\", \
\"numberPlateType\": 0, \
\"mileage\": %f, \
\"price\": %d, \
\"lock\": %d, \
\"engine\": %d, \
\"signaling\": 0, \
\"ownerName\": \"%s\", \
\"intermediary\": \"\", \
\"fuelName\": \"A-92\", \
\"fuelRate\": 0, \
\"state\": 100, \
\"taxCurrent\": 3000, \
\"taxLimit\": 60000, \
\"improvements\": 0, \
\"finesAmount\": 0 }", temp_str, idx, carid, GetVehicleName(carid), CarInfo[carid][cMilage], CarInfo[carid][cCost], GetDoorsStatus(carid), GetEngineStatus(carid), CarInfo[carid][cOwner]);
}
if(count >= 10) strcat(temp_str, ",");
}
if !count *then return SCM(playerid, COLOR_OLDRED, !"[Îøèáêà] {FFFFFF}Ó âàñ íåò ëè÷íîãî òðàíñïîðòà!");
if(count >= 10) strdel(temp_str,strlen(temp_str)-1,strlen(temp_str));
ExecuteEvent(playerid, 1, "vue.set('vehicle');");
ExecuteEvent(playerid, 1, "vue.call('vehicle/loadTypes', '[{\"id\":1,\"icon\":\"car.svg\"},{\"id\":2,\"icon\":\"motorcycle.svg\"},{\"id\":3,\"icon\":\"airplane.svg\"},{\"id\":4,\"icon\":\"ship.svg\"}]');");
ExecuteEventf(playerid, 1, "vue.call('vehicle/loadVehicles', '[%s]');", temp_str);
cache_delete(result, mysql);
return SetFocusBrowser(playerid, 1, true);
У тебя вроде и так доступно 10 машин.

1728062331624.png
 
Сверху