22.03.2016, 15:15
(
Последний раз редактировалось FinStar; 22.03.2016 в 19:03.
)
Hello, I have a little problem, does anyone know how to fix?
Код:
player/save-load.pwn(472) : error 017: undefined symbol "virtual" player/save-load.pwn(472) : warning 215: expression has no effect player/save-load.pwn(472) : error 001: expected token: ";", but found ")" player/save-load.pwn(472) : error 029: invalid expression, assumed zero player/save-load.pwn(472) : fatal error 107: too many error messages on one line
Код:
/* Inventory */ length = modio_read(filename, _T<I,N,V,0>, sizeof(saveload_ItemList), saveload_ItemList); itemlist = ExtractItemList(saveload_ItemList, length); d:2:HANDLER("[LOAD:%p] Inv items: %d", playerid, GetItemListItemCount(itemlist)); for(new i, j = GetItemListItemCount(itemlist); i < j; i++) { itemtype = GetItemListItem(itemlist, i); if(length == 0) break; if(itemtype == INVALID_ITEM_TYPE) break; if(itemtype == ItemType:0) break; itemid = CreateItem(itemtype, .virtual = 1); This line. if(!IsItemTypeSafebox(itemtype) && !IsItemTypeBag(itemtype)) SetItemArrayDataFromListItem(itemid, itemlist, i); AddItemToInventory(playerid, itemid, 0); d:3:HANDLER("[LOAD:%p] - Inv item %d: %d", playerid, i, _:itemtype); } DestroyItemList(itemlist);