Raised This Month: $ Target: $400
 0% 

Question about read_argv / read_args


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Max3
Junior Member
Join Date: Sep 2015
Old 09-30-2015 , 13:28   Question about read_argv / read_args
Reply With Quote #1

Hi.

Can read_argv or read_args values be changed? I want to replace the value provided by read_argv/read_args with another value (string).

Let's have this as an example:
PHP Code:
public func_a_b_c(id)
{
    new 
some_data[32], some_info[32];
    
    
read_argv(0some_datacharsmax(some_data)); // => some_data = "example"
    
read_argv(1some_infocharsmax(some_info)); // => some_info = "98765"
    
    
new new_data[] = "whatever"
    
new new_info[] = "123456"
    
    
// Patch arguments
    // There is no set_argv or set_args, this is just an example!
    
set_argv(0new_datacharsmax(new_data));
    
set_argv(1new_infocharsmax(new_info));
    
    
// Now read_argv 0 or 1 should provide the new data/info
    
read_argv(0some_datacharsmax(some_data)); // some_data = "whatever"
    
read_argv(1some_infocharsmax(some_info)); // some_info = "123456"

Is this possible? If yes, how?

Thank you.

Last edited by Max3; 09-30-2015 at 13:30.
Max3 is offline
 



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 22:15.


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