Пользователь
- Регистрация
- 27 Янв 2024
- Сообщения
- 16
- Автор темы
- #1
Здравствуйте.
Решил добавить инвентарь в мод, столкнулся с проблемой которую я просто не вижу.
В одной строчке находится 6 ошибок
Строка 1404:
Код вокруг неё:
Решил добавить инвентарь в мод, столкнулся с проблемой которую я просто не вижу.
В одной строчке находится 6 ошибок
modules\invent\inventraio.pwn(1404) : error 029: invalid expression, assumed zero
modules\invent\inventraio.pwn(1404) : warning 213: tag mismatch
modules\invent\inventraio.pwn(1404) : error 001: expected token: ")", but found "["
modules\invent\inventraio.pwn(1404) : warning 215: expression has no effect
modules\invent\inventraio.pwn(1404) : error 001: expected token: ";", but found "]"
modules\invent\inventraio.pwn(1404) : fatal error 107: too many error messages on one line
modules\invent\inventraio.pwn(1404) : warning 213: tag mismatch
modules\invent\inventraio.pwn(1404) : error 001: expected token: ")", but found "["
modules\invent\inventraio.pwn(1404) : warning 215: expression has no effect
modules\invent\inventraio.pwn(1404) : error 001: expected token: ";", but found "]"
modules\invent\inventraio.pwn(1404) : fatal error 107: too many error messages on one line
Строка 1404:
new ID = if(p_info[playerid][pInventory];
Код вокруг неё:
PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid][0], GetPlayerSkin(playerid));
format(strname,sizeof(strname),"%s",p_info[playerid][name]);
PlayerTextDrawSetString(playerid, inventory_PTD[playerid][1], strname);
for(new i = 0; i < 2; i++) PlayerTextDrawShow(playerid, inventory_PTD[playerid]);
SelectTextDraw(playerid, COLOR_GREY);
for(new i = 2; i < 64; i++)
{
new ID = if(p_info[playerid][pInventory];
PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid], ItemsInfo[ID][ItemModel]);
PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid], ItemsInfo[ID][POSTDx], ItemsInfo[ID][POSTDy], ItemsInfo[ID][POSTDz], ItemsInfo[ID][POSTDc]);
PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid], 320017407);
PlayerTextDrawShow(playerid, inventory_PTD[playerid]);
}
format(strname,sizeof(strname),"%s",p_info[playerid][name]);
PlayerTextDrawSetString(playerid, inventory_PTD[playerid][1], strname);
for(new i = 0; i < 2; i++) PlayerTextDrawShow(playerid, inventory_PTD[playerid]);
SelectTextDraw(playerid, COLOR_GREY);
for(new i = 2; i < 64; i++)
{
new ID = if(p_info[playerid][pInventory];
PlayerTextDrawSetPreviewModel(playerid, inventory_PTD[playerid], ItemsInfo[ID][ItemModel]);
PlayerTextDrawSetPreviewRot(playerid, inventory_PTD[playerid], ItemsInfo[ID][POSTDx], ItemsInfo[ID][POSTDy], ItemsInfo[ID][POSTDz], ItemsInfo[ID][POSTDc]);
PlayerTextDrawBackgroundColor(playerid, inventory_PTD[playerid], 320017407);
PlayerTextDrawShow(playerid, inventory_PTD[playerid]);
}