Thread: LeaveMessage()
View Single Post
  #6  
Old 03-21-2009, 09:32 PM
fragman85 fragman85 is offline
Banned
Join Date: Mar 2009
Location: Switzerland
Posts: 261
fragman85 is on a distinguished road
Quote:
Originally Posted by Codein View Post
You've used "with()" to access DB NPC data where as in the rest of the script, you're not. Stick to one or the other. I prefer using this:

PHP Code:
NPCNAME.variable true 
Rather than "with()".
No idea why I used with() above, lol.


And yes, it can be used for a Mail-System, I didn't know that it's better to save it into text files :o, well now I do, =P.

Example:

PHP Code:
// Leaving a Message for somebody.
LeaveMessage("Fragman85""Hey dude, PM me the list of the 10 richest people, please...""DB_MailSystem");
// Checking if somebody got Messages and how many
CheckMessage("Fragman85""DB_MailSystem");
// Would return 1.
// Get a Message, since there's only one, there's no need for "ID".
GetMessage("Fragman85""DB_MailSystem");
// Would return "Hey dude, PM me the list of...
// Delete the Message, since there's only one there's no need for "ID".
DeleteMessage("Fragman85""DB_MailSystem"); 
Reply With Quote