Radian Posted November 6, 2014 Group: Members Topic Count: 162 Topics Per Day: 0.05 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: May 26, 2023 Share Posted November 6, 2014 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.); Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 7, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10015 Reputation: 2348 Joined: 10/28/11 Last Seen: Thursday at 01:08 PM Share Posted November 7, 2014 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......" Quote Link to comment Share on other sites More sharing options...
Radian Posted November 7, 2014 Group: Members Topic Count: 162 Topics Per Day: 0.05 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: May 26, 2023 Author Share Posted November 7, 2014 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. Quote Link to comment Share on other sites More sharing options...
Question
Radian
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...
what i did was change this
into this
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.