Raised This Month: $ Target: $400
 0% 

Vaulting to integrate between plugins?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-09-2005 , 00:39  
Reply With Quote #6

try writing to files, transfering it directly through conc cmds, mysql will work, cvault would help, maybe even array module.

cvault: Might actually be faster then normal vault now

Code:
stock set_cvaultdata(file[],key[],data[]){     new currline[192],free[128]     new line = cvaultdata_exists(file,key,free)     format(currline,191,"%s %s",key,data)     write_file(file,currline,line)     return line; } stock get_cvaultdata(file[],key[],data[]){     new line = cvaultdata_exists(file,key,data)     return line; } stock remove_cvaultdata(file[],key[]){     new data[128]     new line = cvaultdata_exists(file,key,data)     write_file(file,"",line)     return line; } public cvaultdata_exists(file[],key[],data[]){     new currline[192]     new currvalue[128];     new currkey[64];     new line = 0;     new txt;     new free_line = -1;     if( file_exists(file) ) {         while( ( line = read_file(file,line,currline,192,txt ) ) ){             if( !equal( currline,"//", strlen("//") ) && !equal( currline,";",strlen(";") ) ) {                 strtok(currline, currkey, sizeof(currkey), currvalue, sizeof(currvalue),'   ',1);                 if(equal(currkey,key)){                     copy(data,128,currvalue);                     return line;                 }                 else if( equal(currkey,"") ) free_line = line;             }         }     }     else write_file(file, "// **** Cvault V1.117 Storage Method ****", 0);     return free_line; }

All in all, vault isnt the way to go.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
 



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 14:01.


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