12.08.2012, 20:03
You can save it like this, look.
Код:
#define MAX_ITEMS 10 // the ammount of items you have. new items[MAX_ITEMS][1]; // crate the variable in which you can save the objects. for(new i = 0; i < MAX_ITEMS; i++) // This code will add an item to a un-used slot. { if(items[i][0] == 0) { items[1][0] = 1; } }