⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 notify_fail

📁 C实现的MUD,对大家基本入门网络游戏很有帮助!
💻
字号:
     nnnnoooottttiiiiffffyyyy____ffffaaaaiiiillll((((3333))))         MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))          nnnnoooottttiiiiffffyyyy____ffffaaaaiiiillll((((3333))))     NNNNAAAAMMMMEEEE          int notify_fail( string | function str );     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN          Store `str' as the error message to be returned instead of          the default message `What?'.  The message will be displayed          if a 0 is returned from an action setup via add_action().          This is the preferred way to display error messages since it          allows other objects a chance to respond to the same verb          (command).  Do not use write() to display the error message          since this will require you to return a 1 (unless you want          to see the result of the write() in addition to the 'What?'          message).  However, if you do return a 1, then no other          objects will get a chance to respond to the user command.          If a function is passed instead of a string, the function is          called instead of printing a message.  If the function          returns a string, that string is used as the failure          message.  Also, this_player() is set correctly, so write()          can be used.          If "notify_fail()" is called more than once, only the last          call will have an effect.          The idea behind this function is to allow better error          messages than `What?'.     RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE          notify_fail() always returns 0.     Page 1                                          (printed 3/16/95)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -