Skip to content

Instantly share code, notes, and snippets.

@Yiin
Created December 13, 2016 02:23
Show Gist options
  • Save Yiin/e85ece60f3f660b097a11238ff4ae026 to your computer and use it in GitHub Desktop.
Save Yiin/e85ece60f3f660b097a11238ff4ae026 to your computer and use it in GitHub Desktop.
// pakraunam container info iš failo į ram
Container_Load(Equipment, 1, "scriptfiles", "Test_ItemRemoval_2");
// perkeliam itemą į kitą konteinerį
Container_AddItem(Player, 1, item);
// ištrinam itemą
DeleteItem(item);
// Itemo Equipment[2] neturėtų būti, tačiau jis ten tebėra, wtf
ASSERT(Container_GetItemAt(Equipment, 1, 0) == 0);
new Item:item = CreateItem("test item");
Container_AddItem(Equipment, 1, item);
Container_Save(Equipment, 1, "scriptfiles", "Test_ItemRemoval_2");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment