Jump to content
  • 0

Delay When Using Commands


Radian

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Hi everyone I am using this source modification by Cydh

 

here: http://rathena.org/board/topic/83569-delay-to-use-command/

 

the warning message is... 

atcommand.c: In function ‘is_atcommand’:
atcommand.c:10196: warning: too many arguments for format

what i did was change this

sprintf(output,"You must wait %d seconds to use command again.",DIFF_TICK(sd->canusecommand_tick,gettick())/1000.);

into this

sprintf(output,"You must wait before you can use the command again.",DIFF_TICK(sd->canusecommand_tick,gettick())/1000.);
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

if you just want to display a message without adding any parameters for other variable.. you can straight edit the message display part to this.

clif_displaymessage(fd, "You must wait before you can use the command again" );

ur error pop out most probably because you removed the original "%s" that exist in there, but yet you didnt remove the last parameter "DIFF_TICK......"

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

if you just want to display a message without adding any parameters for other variable.. you can straight edit the message display part to this.

clif_displaymessage(fd, "You must wait before you can use the command again" );

ur error pop out most probably because you removed the original "%s" that exist in there, but yet you didnt remove the last parameter "DIFF_TICK......"

 

thanks for the response but when I applied the original patch. somethig similar to what the warning messages that shows up.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...