Raised This Month: $ Target: $400
 0% 

how to read several values out of a the chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Wolle
Member
Join Date: Jun 2005
Location: Berlin / Germany
Old 12-27-2005 , 07:16  
Reply With Quote #5

I tried this but I'm not satisfied.
When checking for the return values with this test command "/10 20 30"
arg holds 49
r holds actually 10
and all the others 0

I'm not too sure how the code really works.
Doesn't "read_argv" already return the appropriate string?
What does
Code:
read_argv(1...
read_argv(2...
read_argv(3...
really do?
I'm under the impression, also after double checking with the docs, that it would return the first three arguments. Which would mean that "arg" holds "/10", "arg2" " 20" and "arg3" " 30".
Here btw I see why it would be necessary to trim the second and third argument.
What am I misunderstanding here?

EDIT: nvm the 49, I forgot that I %d a string instaed %s.
Wolle is offline
Send a message via AIM to Wolle
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode