View Single Post
Old 09-11-2004, 12:45 AM   #14 (permalink)
Igon
 
Join Date: Feb 2004
Location: Charleston, SC
Age: 37
Posts: 174
Default

Nice idea, but what happens if the name specified does not exist?
Well, that is really a loaded question, the item is deleted and noone gets it.

Possible solutions:
Create an array of all players that match the name typed, might want to use .ToLower() when creating the array as to catch any capitalization errors. This will not help with multiple players issue but if there is more than one players with the same name, you will atleast be given a choice of who to send it to.

As far as the container issue u mentioned above, create u could create an array with all items in the container. If u wanted to allow multiple items to be sent, send the container then add all of the items in the array to the container. But, if u wanted to allow the post office to send only one item, check the array for the number of items and if there is anything in the box, dont send it stop the script from sending anything.

Thanks for sharing, i look forward to any mods and if i come up with anything ill post here too.
Igon is offline   Reply With Quote