Raised This Month: $ Target: $400
 0% 

Need help deleting


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kei
Junior Member
Join Date: Jun 2006
Old 06-19-2006 , 18:59   Need help deleting
Reply With Quote #1

Im having a problem where the plugin doesnt save unless im connected to a Database, but i modded the base plugins so that i dont connect to a database.


L 06/19/2006 - 17:57:59: [F_NRP_economy.amxx] [VAULT] Not saving Keitaro's NRP becaues not connected

yah i dont know how to code and thus for i dont know what to look for so i can delete it T.t

Code:
//////////////////////////////////////////////////////////////////////////////////// //                         5 Saving                       //////////////////////////////////////////////////////////////////////////////////// stock save_stats(id,method) {         if(!is_user_connected(id) ) {                 new name[256]         get_user_name(id,name,255)                 log_amx("[VAULT] Not saving %s becaues not connected",name);                         return PLUGIN_HANDLED     }     new authid[32], key[32],value[128],vaultstring[256]     get_user_authid(id,authid,31);     new items[2][32]     items[0] = "cash;"     items[1] = "bank;"         if(method == 1 || method == 0) {         for(new slot = 0;slot<=15;slot++) {                 new string[256]             string = Player_Inventory[id][slot]             format(value,128,"%s",string)                                 format(key,32,"%sSlot%d;",authid,slot);                                 push_keys(key,value)                                             format(vaultstring,255,"NRP_v=%s=Slot%d",authid,slot)             set_vaultdata(vaultstring,value)                                 }     }         if(method == 2 || method == 0) {         for(new slot = 0;slot<2;slot++) {                 switch(slot) {                 case 0: {                                         format(value,128,"%d",Player_Cash[id])                                         format(key,32,"%s%s",authid,items[slot]);                                                     push_keys(key,value)                                         format(vaultstring,255,"NRP_v=%s=%s",authid,items[slot])                     set_vaultdata(vaultstring,value)                                                 }                 case 1: {                                         format(value,128,"%d",Player_Bank[id])                                         format(key,32,"%s%s",authid,items[slot]);                                                     push_keys(key,value)                                         format(vaultstring,255,"NRP_v=%s=%s",authid,items[slot])                     set_vaultdata(vaultstring,value)                                                 }             }                 }         new SBank_Cash[9]                 num_to_str(Bank_cash,SBank_Cash,8)         format(key,255,"NRP=serverbank",authid);         set_vaultdata(key,SBank_Cash);     }         return PLUGIN_HANDLED     } /* stock save_stats(id,2) {         if(!is_user_connected(id) ) {                 new name[256]         get_user_name(id,name,255)                 log_amx("[VAULT] Not saving %s becaues not connected",name);                         return PLUGIN_HANDLED     }             new authid[32], vaultstring[256],bufferstring[256];     get_user_authid(id,authid,31);         new SPlayer_Cash[32],SPlayer_Bank[32],SBank_Cash[32]         num_to_str(Player_Cash[id],SPlayer_Cash,31)     num_to_str(Player_Bank[id],SPlayer_Bank,31)     num_to_str(Bank_cash,SBank_Cash,31)         format(vaultstring,255,"NRP_v=%s=cash",authid);     set_vaultdata(vaultstring,SPlayer_Cash); // save items     format(bufferstring,255,"%s %s",vaultstring,SPlayer_Cash)     write_buffer(bufferstring)         format(vaultstring,255,"NRP_v=%s=playerbank",authid);     set_vaultdata(vaultstring,SPlayer_Bank); // save items     format(bufferstring,255,"%s %s",vaultstring,SPlayer_Bank)     write_buffer(bufferstring)         format(vaultstring,255,"NRP_v=serverbank",authid);     set_vaultdata(vaultstring,SBank_Cash);         return PLUGIN_HANDLED } */
Kei 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 07:59.


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