Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
functions [2016/12/05 22:12] textstorm [Send a User a System Message] |
functions [2016/12/05 22:13] textstorm [Send a User a System Message] |
||
---|---|---|---|
Line 68: | Line 68: | ||
**Function:** public function SysMessage($db, $username, $message) | **Function:** public function SysMessage($db, $username, $message) | ||
+ | |||
+ | To send a System message to a user: | ||
+ | <file php SystemMessage.php> | ||
+ | //The below would send a message to Steve from the System user telling him he won the race and how much he won | ||
+ | $user->SysMessage($db, "Steve", "You have won the race and received $coins coins!"); | ||
+ | </file> | ||
===== Generate a Tooltip ===== | ===== Generate a Tooltip ===== | ||
This allows you to generate a tooltip - when text is hovered over a CSS box will display with more information. | This allows you to generate a tooltip - when text is hovered over a CSS box will display with more information. |