Raised This Month: $ Target: $400
 0% 

read_file help me


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
JonathanRF
New Member
Join Date: Jan 2011
Old 01-13-2011 , 20:20   read_file help me
Reply With Quote #1

hi every1, i'm from brazil, so sry for my bad english,
PHP Code:
[...]
    new 
arquivo[62]; // arquivo = file (portuguese...)
    
new usrname[32];
    
    
get_user_name(id,usrname,31)
    
    
replace_all(usrname,31,":","_00");
    
replace_all(usrname,31,">","_01");
    
replace_all(usrname,31,"<","_02");
    
replace_all(usrname,31,"/","_03");
    
replace_all(usrname,31,"?","_04");
    
    
format(arquivo,sizeof(arquivo),"addons/amxmodx/data/users/%s.txt",usrname)
    
    
/*and here i wanna read the file, are 4 lines, i tried to do it:
    new data[4][31];
    new ln;

    read_file(arquivo,0,data[0],30,ln);
    read_file(arquivo,1,data[1],30,ln);
    etc...
    but "data[x]" hasn't the content of the line
    */
[...] 
help me please
thx

Last edited by JonathanRF; 01-13-2011 at 20:31.
JonathanRF 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 02:10.


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