kones
Новичок
Здравствуйте у меня появилась проблема я переносил валюту евро с одного мода аризоны в другой и у меня появилась такая ошибка
Вот сам код
(скрин кинуть не могу так как имгур стал помойкой и невозможно зарегатся)
CSS:
(35432) : error 032: array index out of bounds (variable "GLS")
(35436) : error 032: array index out of bounds (variable "GLS")
(35437) : error 032: array index out of bounds (variable "GLS")
(35445) : error 032: array index out of bounds (variable "GLS")
(35448) : error 032: array index out of bounds (variable "GLS")
(35449) : error 032: array index out of bounds (variable "GLS")
CSS:
case 3722:
{
if(!response) return true; //PI[playerid][pInventoryKolvo][PickInvent[playerid]]
if(GLS[71] < 0 || GLS[68] > 10000) return true;
if(strval(inputtext) < 0 || strval(inputtext) > 10000) return true;
if(strval(inputtext)*GLS[68] > PI[playerid][pMoney]) return SendClientMessage(playerid, COLOR_RED, "[Ошибка] {FFFFFF}У вас недостаточно денег.");
if(strval(inputtext) > GLS[69]) return SendClientMessage(playerid, COLOR_RED, "[Ошибка] {FFFFFF}У штата недостаточно EURO");
GiveMoney(playerid,-strval(inputtext)*GLS[71]);
GLS[72] -= strval(inputtext);
AddItem(playerid, 553, strval(inputtext));
SaveInventory(playerid);
SaveInforamtion();
}
case 3723:
{
if(!response) return true; //PI[playerid][pInventoryKolvo][PickInvent[playerid]]
if(GLS[71] < 0 || GLS[68] > 10000) return true;
if(strval(inputtext) < 0 || strval(inputtext) > 10000) return true;
if(strval(inputtext) > GetCount(playerid, 553)) return SendClientMessage(playerid, COLOR_RED, "[Ошибка] {FFFFFF}У вас недостаточно EURO");
GiveMoney(playerid,strval(inputtext)*GLS[71]);
GLS[72] += strval(inputtext);
DeleteItem(playerid, 553, strval(inputtext));
SaveInventory(playerid);
SaveInforamtion();
}
Последнее редактирование модератором:
