Quote:
Originally Posted by Codein
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");