When it crashes in give_item that#s either because pan_inventory_slot is vagabonding or NULL or pItem. Please read through the tutorial! You're trying to execute code outside of functions. That won't ever work.


Always learn from history, to be sure you make the same mistakes again...